A former sheriff's deputy in Bullitt County has been sentenced to 27 months in federal prison for arresting a man who insulted him.

The U.S. attorney's office in Louisville said Matthew Corder was sentenced on Monday. U.S. District Judge David J. Hale imposed the sentence and ordered a year of supervised release.

Corder was convicted in July of two counts of willfully depriving the man of his constitutional rights.

Evidence presented at the four-day trial included body-camera footage of the arrest after Corder in 2014 entered the home of the man who had insulted him, tased him in the back and arrested him for crimes he didn't commit, causing the man to be jailed for weeks and lose his job. The charges were eventually dismissed.