TURLOCK (CBS13) — Authorities say a Stanislaus County deputy was shot at by someone in a vehicle during a chase near Turlock on Wednesday night.

The Stanislaus County Sheriff’s Office says, a little before 9 p.m., deputies were advised by the Turlock Police Department to be on the lookout for a group of people in a car who were reportedly seen shooting near Berkeley and Alderson roads.

READ MORE: 'A Trend That Won't Go Away': Sacramento City Leaders Consider Permanent Plans For Street Dining

Less than an hour later, a deputy spotted a car matching the description of the suspects near Seasons Park Drive.

Ernesto Covarrubias (via Turlock PD)

Someone inside the suspect vehicle then shot at the deputy as they sped away, the sheriff’s office says; the deputy was not hurt and did not return fire.

A short chase soon followed that ended near Spring Crest Drive, where three people who were inside the car got out and ran.

READ MORE: Sacramento Kings Tickets Back On Sale, But COVID-19 Guidelines Will Discourage Booing Or Yelling

With the help of several other agencies, two of the three people who ran were taken into custody.

The third suspect was identified as 18-year-old Turlock resident Ernesto Covarrubias.

Stanislaus County Sheriff’s deputies located Covarrubias Thursday afternoon in the area of Mitchell Avenue and East Hawkeye Avenue. He was arrested and booked on charges of attempted homicide, assault with a deadly weapon upon a peace officer and being under 21 years of age and in possession of a firearm.

More from CBS Sacramento:

MORE NEWS: Placer County Deputy Investigating Mail Theft Finds Out He Himself Was A Victim

Three guns were also found in the search, the sheriff’s office says.