Shooting suspect was twice hospitalized for mental illness