That shooting happened Friday night in the 1600 block of 81st Street in the Florence-Graham neighborhood just south of downtown Los Angeles.
Detectives said 36-year-old Michael Cones, 24-year-old Joe Childs and 24-year-old Brendan Caveness were arrested for attempted murder on a peace officer. Each was being held on $1 million bail.
Three deputies with the sheriff's anti-gang unit Operation Safe Streets were trying to detain several individuals when the suspected gang members shot at the deputies.
One deputy was shot in the torso and transported to St. Francis Medical Center in Lynwood where he underwent surgery. He was reported in stable condition.
Investigators are looking for up to four other suspects who could be involved in the shooting.
Anyone with any information is urged to call Los Angeles County Sheriff's Crimestoppers tip line at (800) 222-TIPS.