BANGOR — A Maine man who asked to be publicly flogged rather than serve prison time for his role in an armed standoff with police has been sentenced to 10 years in prison.

The Bangor Daily News reports that Domingos Nobrega was sentenced Friday in federal court on charges of being a felon in possession of a firearm.

Police went to Nobrega’s Bangor home in October 2010 to deal “with a despondent, suicidal male.”

During a six-hour standoff, police saw Nobrega holding a gun. He was barred from having a firearm because of prior felony convictions.

Nobrega’s attorney said the weapon was a pellet gun.

Nobrega asked a federal judge in January to sentence him to a public flogging instead of prison time, a request the judge turned down.