Two Los Angeles police officers were shot at and grazed by gunfire Sunday, setting off a large manhunt in a South LA neighborhood, police said.

At least two undercover officers were in a car about 5:45 p.m. in the area of 65th and Main streets when shots were fired at their car, LAPD officials said.

Officers returned fire, but it was unclear if anyone was struck. The shooters ran off in different directions, police said.

The officers were taken to the hospital with non-life-threatening wounds, police said. They were expected to be OK.

There was a heavy police presence from Gage to Florence avenues and Broadway to Main Street as officers from several stations flooded the area in search of the shooters.

One person was taken into custody, and at least two others were sought.

Three people had been detained by 7:20 a.m. Monday, officers said, though no one in police custody was under arrest. Officers were trying to determine whether they were involved in the case.

The officers were conducting an investigation at the time of the shooting, police said.

The stretch near 65th and Broadway has seen a sharp uptick in crime recently. The area is also where Ezell Ford, an unarmed, mentally ill man, was shot and killed by LAPD officers, sparking community outrage.

Ford was shot Aug. 11, 2014, when LAPD Officers Sharlton Wampler and Antonio Villegas confronted Ford, who police said was making "suspicious movements" when he turned and "grabbed one of the officers."

Ford's parents have filed a wrongful death suit against the city, the LAPD and the two officers, saying the officers intentionally shot the 25-year-old even though he was "posing no threat to anyone."

Andrew Blankstein of the NBC News Investigative Unit contributed to this report.