A Texas man faces either the death penalty or life in prison without parole after being convicted of fatally shooting a west Texas deputy sheriff.

A jury in El Paso deliberated for about 30 minutes Thursday before finding Facundo Chavez, 31, guilty of capital murder in the 2019 death of El Paso County deputy Peter Herrera during a traffic stop.

Chavez admitted during testimony that he shot and beat Herrera and said he did so because his girlfriend, who was with him at the time, said Herrera had harassed her.

TEXAS A&M UNIVERSITY REACHES $1 MILLION SETTLEMENT WITH BLACK JOURNALISM PROFESSOR

Prosecutors argued that Herrera did not know who was in the vehicle he had stopped for a traffic violation shortly before 2 a.m. because the vehicle was unfamiliar and the traffic stop was in a dark area.

Texas Fox News graphic

Facundo Chavez faces either the death penalty or life in prison without parole after being convicted of killing a Texas deputy sheriff.

Authorities say Chavez fired 15 shots at Herrera, then beat the deputy with the gun, after getting out of the stopped car at the deputy's request.

TEXAS DEPUTY DIES DAYS AFTER SHOOTING, COPS WANT SUSPECT CHARGED WITH CAPITAL MURDER

The jury will now consider whether to sentence Chavez to death or life in prison.

Herrera died two days after the March 2019 shooting in San Elizario, near the U.S.-Mexico border on the southeastern outskirts of El Paso. Authorities had initially said Herrera was expected to survive his wounds because of the body armor he was wearing.

CLICK TO GET THE FOX NEWS APP

Chavez's girlfriend, Arlene Pina, was initially charged with capital murder in the shooting, but later pleaded guilty to manslaughter as part of a plea deal and is serving a 15-year prison sentence.