A federal judge on Tuesday sentenced a Lafayette man to 10 years in prison for shooting at a postal worker, the U.S. Attorney’s Office announced.

David C. Sonnier, 41, will also serve two years of supervised release and was ordered to pay $1,178 in restitution for firing the bullet, which passed through the postal worker’s pant leg before lodging in the mail-delivery vehicle, according to a news release from U.S. Attorney Stephanie Finley of the Western District of Louisiana.

Sonnier pleaded guilty on Sept. 16 to one count of discharging a firearm during commission of a crime of violence, admitting he fired the shot as the postal worker drove by his home.

He used a Hi-Point 9mm semi-automatic pistol in the March 27, 2014, crime, causing about $1,178 in damage to the truck, according to the U.S. Attorney’s Office.