Updated

Authorities have arrested a suspect who barricaded himself inside a marked police cruiser in southern California for several hours late Tuesday.

The suspect was taken into custody without incident just after midnight on Wednesday, police said. A SWAT team was deployed in response to the standoff.

The suspect had access to weapons inside the vehicle and fired one shot during the incident, according to the Garden Grove Police Department. The keys were in the car's ignition, and authorities evacuated the surrounding area, The Orange County Register reported.

Police had been responding to a call from an addiction-recovery home to assist with a man showing signs of psychosis, Lt. Carl Whitney, a police spokesman told the paper.

The man gained access to the patrol car after police placed him inside the vehicle while waiting for an ambulance, according to the paper.

“He was able to get access from the rear passenger side to the front side …and a high-powered rifle,” Whitney told the paper.

No one was injured, authorities said.