The female deputy was attempting to stop a vehicle at Vermont Avenue and West 97th Street shortly after 2 a.m. when the suspect attacked her and drove off, according to Deputy Trina Schrader, a spokeswoman for the Sheriff's Department.
The deputy was transported to Harbor-UCLA Medical Center with injuries that were not life-threatening, Schrader said.
The uninjured suspect fled the scene and was arrested after a chase that ended about 3 miles away in the area of Florence and Western avenues, authorities said.
Deonte Lee Murray: Suspect arrested, charged with attempted murder for Compton ambush shooting
Details of the assault and the reason for the initial traffic stop were not immediately disclosed.
The person in custody has not been publicly identified.
City News Service contributed to this report.