Mental health issues contributed to shooting, police say i