LOS ANGELES -- Two men attempting to rob a person in Los Angeles were shot during the incident that was captured on survelliance video, police said Tuesday.

The incident unfolded about 7:10 p.m. Monday, according to the Los Angeles Police Department. Two women and a man were chatting in the area when a Dodge Avenger reversed and stopped near where the group was gathered, video released by the LAPD shows.

Two men got out of a Dodge Avenger and confronted the man while holding a handgun. The women who were talking to the would-be victim ran away when the gun was displayed, the video shows.

“Words were apparently exchanged, and the victim ultimately produces a handgun, apparently to defend himself and others in his group from the would-be robbery suspects,” police said in a news release. “The victim fired his weapon toward the suspects and then all parties immediately fled the location.”

The two men who confronted the would-be victim were shot, but their injuries were not life-threatening, police said.

They were eventually apprehended by responding officers.

Nicholas Brown, 22, from Los Angeles, was shot in the upper thigh. He was booked on suspicion of attempted robbery and is currently on parole, police said.

Markeil Hayes, 28, of Los Angeles was stuck in the right calf. He was also booked on suspicion of attempted robbery and is also on parole.

The driver of the Avenger is outstanding, police said.