BOSTON (AP) — A former Massachusetts state trooper convicted of threatening a gambler who owed thousands of dollars to a bookie cooperating with investigators has been sentenced to almost 3 ½ years in federal prison.

John Analetto, who was fired in June after a 19-year career, was convicted in May of extortion charges.

READ MORE: Ball's Triple-Double Carries Hornets Past Celtics, 111-102

But prosecutors say the 49-year-old Analetto had a history of threatening behavior and had abused his authority as a police officer numerous times in the past. The prosecutors said in court that Analetto thought himself “untouchable.”

READ MORE: 'It's Been A Big Relief': National Guard Deploys At Brockton Hospital

His lawyer said his client’s actions were just bravado brought on by alcohol abuse and a gambling addiction.

Aanaletto apolohized in court Thursday for letting down his family, his country, his profession and his colleagues.

MORE NEWS: Tewksbury Police Looking For Best Backyard Ice Rink For Pick-Up Hockey Game

Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.