VICTORVILLE (CBSLA) — A deputy was injured after a standoff led to a deputy-involved shooting in Victorville Wednesday evening.

According to the San Bernardino County Sheriff’s Department, deputies responded to reports of a man with a gun inside his car threatening nearby citizens at 2:39 p.m. in the 15000 block of 7th Street.

Upon their arrival, the suspect allegedly refused to exit his vehicle and suddenly accelerated toward deputies and their units.

“The deputies set up on the street outside of the business and began negotiating with him,” Cindy Bachman of the San Bernardino County Sheriff’s Department said. “There may have been an exchange of gunfire, that information is not clear.”

At that point, a deputy-involved shooting occurred that left one deputy injured.

“Once the deputy rolled up to his window, he had a gun on him,” Rodrigo Rodriguez, a witness at the scene, said. “And he shot the deputy. He shot him like two or three times.”

The injured deputy was flown to a local hospital with what was believed to be non-life-threatening injuries. Sheriff’s officials are not confirming exactly how the deputy was injured.

The suspect, later identified as 54-year-old Anthony Brown of Victorville, was located with two guns in his possession and taken into custody by SWAT after hours of negotiations.

Brown was injured in the shooting and flown to a hospital for treatment. He is expected to survive his injuries.