Officials said the suspect was beating the deputy, who had been knocked to the ground, when she pulled out her gun and shot the suspect several times.
"There was an accident on the corner, and the guy was walking away from the scene, and the police tried to stop him. He didn't want to stop, so the police drove and the lady pulled out her gun and tried to get him to stop. He hit her on the head, and as she was falling to the ground she started shooting," said Kenny Paris, who witnessed the altercation.
Witnesses say the female deputy fired shots after she had been hit in the head by the suspect.
"First it was like four gun shots. Then, he charged at her again. And then, she shot at him three more times and that was it," said Paris. "She was on the ground the whole time shooting. So, she was already getting attacked."
The unidentified suspect later died at a hospital.
The sheriff's deputy was released from the hospital on Monday night. She was treated for cuts and abrasions.
The identity of the 24-year-old woman killed in the accident has not been released.
- Get more local news headlines from Los Angeles
- Have a news tip? Send your tips, video, or pictures