LOS ANGELES (AP) — Two gang shootings led to a police gunbattle Thursday in which officers killed one gunman, wounded another and captured a suspect in a surging gang conflict, authorities said.

Two schools were locked down for hours, and residents of the densely populated Glassell Park area were ordered to stay inside as heavily armed officers swarmed the neighborhood during the search.

The police gunbattle followed two gang shootings around midday: the first in which a man carrying a toddler was shot multiple times and a car-to-car shooting soon afterward, authorities said.

Police Chief William Bratton said plainclothes officers went to a known location for the Avenues gang and found four suspects in both shootings.

Three suspects got out of the car and opened fire and officers fired back, killing one, police said.