El Paso County sheriff's Deputy Peter Herrera died Sunday evening, two days after he was shot during a traffic stop.
Herrera's death at an El Paso hospital was a shock because it appeared that he had been doing well and had been responsive after undergoing surgeries, Sheriff Richard Wiles said.
"We were just praying and hoping for the best and it just wasn't meant to be," Wiles said at a somber news conference Sunday night.
Herrera died at about 5:35 p.m. at a hospital from his injuries after being shot early Friday during a traffic stop in San Elizario, Texas, Wiles said.
The suspected shooter, Facundo Chavez, has been charged with capital murder, the El Paso Times reports.