A Kentucky man was sentenced to more than six years in prison for trying to arrange the murder of a 14-year-old boy to prevent the teen from testifying against him in a trial.

John Michael Musbach, 34, of Haddonfield, must also pay a $30,000 fine, according to the U.S. Attorney’s Office for New Jersey.

Musbach sought a hitman in 2016 to kill a New York boy whom he had victimized in an online child-pornography crime one year earlier, prosecutors said.

He wanted to prevent the boy from testifying at a trial for endangering the welfare of a child, authorities alleged.