Guadalupe Lopez Herrera was arrrested on Thursday after shooting a Merced County Sheriff’s detective in the chest on Wednesday afternoon.

#BREAKING Captured! This is the suspect accused of shooting a Merced County detective yesterday. He was just arrested on I-5 near Kettleman City following a pursuit from Paso Robles. @ABC30 pic.twitter.com/nUc9UTrNAZ

ABC 30 reported:

The California Highway Patrol has confirmed officers arrested the man accused of shooting a Merced County Sheriff’s detective Wednesday afternoon.

TRENDING: BREAKING REPORT: President Trump to Nominate Amy Coney Barrett to Replace Ginsburg on the Supreme Court

51-year-old Guadalupe Lopez Herrera was taken into custody after a pursuit through several Central Valley counties.

The chase ultimately came to an end when officers deployed a spike strip on Interstate 5 near West Jayne Avenue in Fresno County.

Herrera is accused of opening fire on detectives that were following up on a domestic violence investigation…

…According to the Sheriff’s Office, Herrera is not in the country legally and was in custody earlier this year for a domestic violence charge. However, he was released due to SB 54 which restricts local law enforcement agencies from sharing information with Immigration and Customs Enforcement about arrests of people in the country illegally.