Law enforcement says the gunman had no known ties to terrorist groups as investigation looks at whether he had a history of mental illness.