MODESTO (CBS13) — Authorities are investigating after a chase near Modesto ended with a deputy-involved shooting that sent two people to the hospital — one in critical condition.

The Stanislaus County Sheriff’s Office says that around 2 a.m. Tuesday, a deputy attempted a traffic stop for vehicle code violations near Torrid and N. Carpenter roads but the suspect took off. Unknown to the deputy at the time, the vehicle had five teenage passengers inside.

READ MORE: 'Simply Just Another Bump In The Road': Future Sacramento Firefighter Tells Inspirational Story From Chemo To Cadet

READ MORE: Sacramento Highway 99 Closure Now In Place: How To Get Around It

The chase continued for seven miles through city and county streets. Eventually, it ended near Finch and McClure roads after authorities used a PIT maneuver, according to a sheriff’s department statement

At one point, the driver allegedly used the car as a weapon in Modesto, driving towards law enforcement vehicles.

Deputies shot at the car, hitting the driver, a 17-year-old male, and a passenger. The driver was critically injured. He was transported to a local area hospital. That passenger, along with three other passengers were examined at the hospital, treated, and released.

MORE NEWS: Rideshare Services Like Lyft, Uber Struggle To Get Drivers Behind The Wheel

The incident remains under investigation.