A 21-year-old man has been sentenced to 10 years in prison for donning a hazmat suit and a "Halloween" movie mask, then holding up a small-town bank in northern Minnesota.

Cody L. Troy, of Mizpah, Minn., learned in federal court in St. Paul this week that he will also be on five years' supervised release when his prison time ends for the armed robbery the First State Bank of Bigfork in Kelliher.

Troy admitted to robbing the bank on Dec. 10, 2012, while brandishing a 12-gauge sawed-off shotgun that had a partly obliterated serial number. His take was $3,738.

His attorney noted in court records that Troy was unemployed, homeless and "19, desperate and high" at the time of robbery and needed the money to pay back one of his drug dealers.

U.S. District Judge Donovan Frank's sentence calls for Troy to participate in a 500-hour drug treatment program in prison.

According to prosecutors, Troy wore a white biohazard containment suit and the mask as he approached the teller. He placed a backpack on the counter, pointed the shotgun toward the teller and pumped it. The teller put the cash in the backpack, and Troy fled in a pickup truck driven by Travis M. Burns.

Two days later, police arrested Troy in Bemidji on a warrant for failure to appear in Itasca County in connection with an earlier felony.

In a search of the Bemidji apartment where Burns lived and Troy was staying, authorities seized shotgun shells, a hacksaw and a loaded sawed-off shotgun. They also found the containment suit and mask. About $317 from the bank was recovered in Burns' bedroom.

Troy is barred from possessing a firearm because he was convicted in 2011 of burglarizing a liquor store in Koochiching County and stealing beer, liquor, cigarettes and soda.

Burns, 21, pleaded guilty to his role in the stickup and was sentenced in October to more than five years in prison, with three years of supervised release to follow.

Sentencing for both also calls for them to make restitution for the full amount.