An LAPD gang officer and a parole officer were wounded when a gunman opened fire on them Tuesday night in Los Angeles, just hours after another gunman shot at two undercover LAPD detectives.

In the Tuesday night incident, the gunman shot an LAPD gang officer and a parole officer. The gunman hid inside a home in South Los Angeles when he opened fire on the two officers, who were conducting a search in the house around 7 p.m. Tuesday, according to the Los Angeles Times.

The LAPD gang officer took shots to the face and neck, while the parole officer was struck in the leg. The officers responded by firing their weapons, damaging the home’s floor and ceiling, the paper reports. The gang officer was undergoing surgery for his injuries, while the parole officer’s wounds were not considered to be life-threatening.

There were no arrests in the case as of Wednesday morning.

The ambush of the two officers came hours after two undercover LAPD detectives came under fire in the Mid-City section of Los Angeles.

The undercover officers were attacked around 4:30 a.m. as they were heading back to their police station in Wilshire. They only suffered minor injuries and even helped in the manhunt for the gunman, who had not been apprehended as of Wednesday morning.

"Suddenly, someone from behind began shooting at their vehicle," LAPD Cmdr. Andrew Smith said to the Associated Press.

Charlie Beck, chief of police for the LAPD, called the shootings “an attempted assassination,” AP reports.

A 25-square-block section of the Mid-City area of Los Angeles was searched, and residents were told to take shelter in place as the LAPD tried to apprehend the shooter.

Ten people were questioned about the early morning LAPD shooting and released, according to the AP’s story.

"Anybody who's willing to do this and take on two armed police officers outside of a police station is obviously a very dangerous person," Smith told the news wire service.

The two LAPD shootings do not appear to be related, according to the Times. But the department cautioned that it is still in the early stages of both investigations.

Names of the officers were not released, but Smith identified the undercover gang officer and a parole officer as LAPD officers with 20 and 11 years of experience, respectively.