A Los Angeles County sheriff's deputy was saved by her phone charger during a shootout that left one man dead.

The deputy and her partner were making a traffic stop at about 12 a.m. in Inglewood when the shooting occurred.

"The suspect pulls out a weapon, starts to shoot at the deputies," Sheriff Lee Baca told KTLA in an interview at the scene.

The deputies returned fire, striking the man multiple times in the chest. The man was transported to a local hospital, where he was pronounced dead.

"One deputy -- the female deputy -- was shot in the hip," Baca said. "Fortunately, the round hit her phone charger and did not embed in her body but it did embed in the charger."

The charger's deflection of the bullet was called a "miracle" in a tweet sent mid-morning by the Sheriff's Department.

She was transported by ambulance to a hospital. The ambulance was reportedly escorted by more than a dozen sheriff's and local police vehicles.

The deputy was released from the hospital Tuesday morning.

A male deputy was grazed by a bullet in the exchange of gunfire.

Two suspects were taken into custody.