SWATARA TOWNSHIP, Pa. (WHTM) — A police officer was involved in an accident with another vehicle while responding to an armed carjacking suspect in Dauphin County, the Swatara Township Police Department said Friday.

The Steelton Borough Police Department said that around 10:14 p.m. on Dec. 29, police received a call for an armed carjacking in the 100 block of S. Second Street. The victim told officers at the scene that a man put a gun to her head and stole her vehicle.

According to the Swatara Township Police Department, on Dec. 29 around 10:40 p.m., Swatara Township Police officers responded to help with a pursuit of the stolen vehicle. The Lower Paxton Township Police Department was pursuing the vehicle.

The vehicle had entered Swatara Township, and while officers were responding to help with the pursuit, a Swatara Township Police officer was involved in an accident with another unrelated vehicle while responding as backup.

The officer and the driver of the other vehicle were both transported to a hospital with non-life-threatening injuries, according to the Swatara Township Police Department.

The Swatara Township Police Department noted that the Pennsylvania State Police responded and are investigating that accident.

As for the vehicle involved in the carjacking, Steelton Borough Police say Swatara Township Police lost contact with the stolen vehicle when it fled. The stolen vehicle was later located by Lower Paxton Township Police after it crashed, Steelton Borough Police say.

All five occupants in the vehicle, including three adults and two juveniles, were apprehended and charged, according to the Steelton Borough Police Department.

The adults were identified by Steelton Borough Police as Tyjeir Wilson of Steelton, Aalir Mayo of Harrisburg, and Edwin Rojas Cardova of Highspire. The juveniles were charged as adults.

According to court records, Wilson and Rojas Cardova were charged with felony criminal conspiracy to engage in robbery, receiving stolen property, fleeing police, and robbery with the threat of serious injury.

They’re also facing multiple endangerment charges in addition to assault and driving charges.