Editor’s note: This story has been updated to clarify the suspect’s alleged role in the shooting.

Police have announced the arrest of a Desert Hot Springs man accused in the shooting and wounding of a Riverside County Sheriff’s Deputy. 

According to the Riverside County Sheriff’s Office, the incident occurred on Wednesday at 7:08 p.m. near Ramon Road and Robert Road in unincorporated Thousand Palms. 

Deputies were attempting to locate the suspect of a felony hit-and-run and found him and another man sitting in a car. 

“While detaining the driver of the vehicle, the passenger fired at deputies, and a deputy-involved shooting occurred,” RCSO said in a release. “The suspect barricaded [himself] inside the vehicle and refused to follow commands.” 

A deputy was struck by gunfire and transported to a local hospital where he was said to be in stable condition. The suspected gunman also remained hospitalized as of Saturday evening, authorities said.

Authorities say Jose Eduardo RosalesPerez, 34, was the driver. He was taken to the John Benoit Detention Center and booked on three counts of attempted murder of a peace officer.