Updated

An Oregon man was in custody hours after he pulled up next to a police vehicle early Friday and fired several shots inside, striking one officer, authorities said.

The Salem Police Department said detectives were in a vehicle around 3:20 a.m. after conducting an investigation when another vehicle pulled up alongside, a police news release said. Several shots were fired into the police vehicle and a detective was struck on the arm.

The vehicle with the shooting suspect, identified as 27-year-old Alejandro Maciel-Salcedo, fled the scene.

The injured officer, identified by the department as Det. Emmons, a 21-year veteran of the force, drove himself to an emergency room and was treated for a non-life threatening wound and was later released.

“I’m relieved Det. Emmons wasn’t more seriously injured, and proud of the manner in which our officers resolved this matter," Salem Police Chief Jerry Moore said in a statement.

Officers, along with SWAT members and negotiators, surrounded Maciel-Salcedo's home in Salem. He eventually surrendered peacefully, the department said.

CLICK HERE FOR THE FOX NEWS APP

He was booked into the Marion County Correctional Facility on suspicion of several charges that include second-degree attempted murder, first-degree attempted assault, being a felon in possession of a weapon, assault and multiple counts of unlawful use of a weapon.