A former Wyoming County Sheriff’s deputy received an indeterminate sentence of 15 years to life in prison on Wednesday.

Joseph Mlyniec pleaded guilty to second-degree murder for shooting and killing a Perry man.

The Wyoming County District Attorney says Mlyniec lived a double life — a well-respected retired Sheriff’s deputy with a dark secret behind closed doors.

Mlyniec would lure troubled young men to his Perry farmhouse, where he would groom them to perform sexual favors in exchange for money or food.

The Wyoming County District Attorney says those men called Mlyniec “The Collector.”

Prosecutors say Robert Irvine III was a witness in a sexual assault case against Mlyniec, and was going to come forward to police.

But instead, on March 7, police say Mlyniec, living in fear of going to prison and going public, turned a gun on Irvine and shot him four times.

Wyoming County District Attorney Donald O’Geen said “The whole fear of everyone finding out that he was gay or bisexual weighed very heavily on him.”

Moments after the fatal shooting, Mlyniec called police and admitted to the crime.

Last month, Mlyniec pleaded guilty, in hopes of sparing the tight-knit Perry community, his family and friends the emotional stress of going through a trial.

Mlyniec will have the opportunity to appeal his sentence.