The suspect had mental health issues and there is no indication of a terror motive, police say.