SABATTUS, Maine (AP) — A retired police officer who used a racial slur and suggested shooting President Barack Obama in a Facebook posting resigned Thursday from all boards and committees on which he serves in town.

David Marsters submitted his resignations from the Ordinance Review Committee, Budget Committee and Charter Commission in an email in which he apologized for the actions.

The resignations came hours before Sabattus town selectmen were to meet to consider removing Marsters from all positions he held in the town. But despite the resignations, Marsters isn't giving up his political aspirations altogether because he's still planning to run for Board of Selectmen.

"As of this time, I am still running for selectman," he said in an email.

Marsters, 68, was interviewed by the Secret Service and local police after making the Obama comments. Town Manager Andrew Gilmore said the comments were hateful and were the opposite of what the town stands for.

Marsters, who was a police officer in Massachusetts before retiring to Maine, was in the news earlier this year when he proposed a town ordinance to require heads of household to own guns. Selectmen unanimously rejected the idea.