PHOENIX - An Arizona Department of Public Safety trooper was injured Friday in a multi-car crash that involved a suspect in a carjacking from earlier in the day.

Scottsdale police said the collision at 32nd Street and McDowell Road was the car that was stolen at a Starbucks early on Friday morning, when a man in a mask pointed the gun at a driver and forced him to get out of the car.

EARLIER: Police: Car taken at gunpoint in Scottsdale Starbucks parking lot

Both the trooper and suspect involved in the crash are in stable condition with non-life threatening injuries.

DPS said the trooper was running license plates around 3 p.m. and discovered a black stolen vehicle in the area of the freeway interchange among Interstate 10, State Route 51 and Loop 202.

A short pursuit ensued, but when the vehicle got off Loop 202 at the 24th Street off ramp, the trooper was forced to terminate the chase, according to DPS.

The trooper proceeded onto 24th Street just south of McDowell Road and performed a U-turn to get back on the highway when his motorcycle was rear-ended by a silver car, DPS said.

It is unknown if this is related to the pursuit of the black stolen vehicle.

DPS said the trooper chased the car until it crashed into two pickup trucks at 32nd Street and McDowell Road.

The people in the trucks were not injured, according to DPS.

DPS said though the trooper was injured, he was able to take the suspect into custody with a taser without further incident.

State detectives with DPS's Vehicular Crimes Unit, working with the Scottsdale Police Department, are investigating the incident.