The suspect fired into the crowd with an assault rifle he purchased legally, California police say.