The shooting was reported around 8 p.m. in the area of Ramon and Robert roads, according to the department.
The deputy was hospitalized in stable condition, the department announced hours after the shooting.
Details on the circumstances that led to the shooting were not immediately available.
The department reported later that a suspect was in custody.
The department initially described the location as Palm Desert but later updated it to Thousand Palms.