MODESTO (CBS SF/AP) — David Machado was convicted Monday of first-degree murder for shooting Stanislaus County Sheriff’s Deputy Dennis Wallace in what investigators termed an execution-style shooting in 2016.

A jury deliberated for less than a day before convicting Machado, 42, of Keyes. Prosecutors said Machado planned the shooting but his attorney argued it wasn’t premeditated and Machado should be found guilty of the lesser charge of second-degree murder, the Modesto Bee reported.

READ MORE: Windsor Council Demands Resignation Of Mayor Dominic Foppoli Amid Sexual Assault Investigation

Wallace, 53, was killed on Nov. 13, 2016, in the fishing area of Fox Grove Park in Hughson, a Modesto suburb east of San Francisco.

The 20-year veteran of the force had pulled over a van that Machado was driving because it had been reported stolen nearly a week earlier by Machado’s mother. Machado shot Wallace in the face and neck as the deputy was calling for backup, authorities said.

Investigators later said the deputy was shot execution-style.

READ MORE: 'Enjoy It While You Can' - Bay Area Bubble Tea Shops Prepare For Looming National Shortage Of Boba

After fleeing, Machado carjacked a couple in a nearby town and then attempted another carjacking before he was captured in an alley in Lindsay, about 140 miles southeast of Hughson in Tulare County, authorities said.

Authorities said that two weeks before the killing, a warrant was issued for the arrest of Machado, who had been released on bail for a previous felony offense but failed to show up in court for the start of jury selection in the case. Machado told several people that he wouldn’t return to jail and planned to “shoot it out” with police, the Bee reported.

Machado was convicted of murder with special circumstances, including killing a law enforcement officer on duty. He also was found guilty of carjacking, attempted carjacking and being a felon in possession of a gun.

Machado’s trial was delayed for two years after he was declared mentally incompetent and was treated at a state mental hospital before trial resumed.

MORE NEWS: Sharks Swept By Ducks To End 1-4 Homestand

Jurors on Thursday were scheduled to begin a second sanity phase of the trial. If the panel determines that Machado was sane when he shot the deputy, he could face life in prison without chance of parole. If found insance, he could be committed to a state mental hospital.