Two law enforcement officers were wounded in the shooting, and the city’s schools were put on lockdown.