CHICAGO (CBS) — A 29-year-old man has been convicted of federal charges, for shooting an ATF agent in an ambush attack in the Back of the Yards neighborhood last year.

A federal jury found Ernesto Godinez guilty of assault of a federal officer and discharging a firearm during a crime of violence, according to the U.S. Attorney’s office.

READ MORE: 'I Hope Good Comes Of It': Some Chicagoans Getting Two Johnson & Johnson Vaccine Doses

Ernesto Godinez is charged with shooting an ATF agent in the Back of the Yards neighborhood on May 4, 2018. (Credit: Chicago Police)

Godinez, a purported gang member, had been charged with shooting an undercover ATF agent on May 4, 2018 near 43rd and Hermitage. Police said Godinez ambushed the agent, who was trying to place a tracker on his car during a joint mission by Chicago Police and the Bureau of Alcohol, Tobacco, Firearms and Explosives.

Authorities said Godinez came out shooting when he spotted the agent placing the tracker on his car.

READ MORE: Navy Pier Flyover Completed After Years Of Construction Delays -- Many Ask Why It Took So Long

Federal prosecutors said surveillance cameras captured Godinez leaving his house at 43rd and Wood moments before the shooting, then walking down an alley toward 44th and Hermitage just before the shooting, and running back through the alley to his house moments after the attack.

The wounded agent was released from the hospital five days after the shooting.

MORE NEWS: FDA Approves Pfizer-BioNTech COVID-19 Vaccine For Children Ages 12 To 15

Godinez faces up to 20 years in prison for the assault conviction, and a minimum of 10 additional years for the firearm conviction. His sentencing has been scheduled for Sept. 19.