ST. LOUIS • An armed city deputy marshal told a co-worker this week that he was quitting his job and “going out with a bang, ABB style,” authorities said Thursday.

Christopher E. McDonald, 48, of the 5500 block of Delmar Boulevard in St. Louis, was charged Thursday with making a terrorist threat, a felony.

McDonald allegedly told a fellow deputy at the city municipal court building, 1520 Market Street, on Tuesday that he was planning to quit, and made reference to the 2010 mass shooting at the ABB plant in St. Louis.

The second deputy told McDonald he didn’t want to get shot, and McDonald said he would text him the night before so he could call in sick, according to court records. McDonald made further remarks to the other deputy indicating he might carry out his plan Wednesday, according to the records.

McDonald was disarmed at work Wednesday and arrested, court records say. He admitted making statements to the second deputy.