The attack has raised questions about whether the suspect was overlooked by authorities despite a history of mental health problems and violent offenses.