A Los Angeles County deputy was wounded and a gunman believed to be a gang member died in a shooting during a traffic stop in Compton, CA, authorities said today.

The shooting was reported at 11:40 p.m. Wednesday in the 900 block of North Santa Fe Avenue, said Deputy Trina Schrader of the Sheriff’s Information Bureau, reports the Los Angeles Daily News.

Two Compton station deputies pulled over a white sedan with three people inside for traffic violations. One of the deputies opened one of the rear passenger doors, and a passenger on that side armed himself with a handgun, pointed it at one of the deputies, and opened fire, Schrader said.

The deputy returned fire and the gunman then fired on the second deputy, which is when a second deputy-involved shooting occurred, Schrader said.

The gunman and one of the deputies were wounded during the shootout and taken to hospitals, where the suspect was pronounced dead and the deputy was treated for his injuries and released, Schrader said.

The other deputy was not struck by gunfire, according to Schrader, but NBC4 reported the deputy suffered minor injuries in the incident.

The gunman’s firearm was recovered at the scene.