A 27-year-old Rumford man was sentenced to four years in federal prison on Monday for possession of a firearm after having been convicted of a felony.

Troy Blanchard was arrested Jan. 19 by police in Rumford after he was spotted walking along a road in town with a shotgun.

When police pursued him, Blanchard dropped the gun and went into a nearby residence, where he was arrested without incident.

Blanchard has been prohibited from possessing a firearm because of a 2014 conviction in Oxford County for drug trafficking. He was sentenced by District Court Judge D. Brock Hornby.