A South Dakota sheriff fired a deputy who unseated him in his reelection effort, just a minute after polls closed in Tuesday's primary.

Bon Homme County, S.D., deputy sheriff Mark Maggs defeated sheriff Lenny Gramkow by a vote of 878-331 in Tuesday's Republican primary election, according to The Associated Press.

ADVERTISEMENT

A local newspaper, The Forum of Fargo-Moorhead,reported that Gramkow posted an official termination notice on his Facebook Page after the election.

"Mark Maggs: This letter is to inform you that effective immediately you are terminated from the position of deputy sheriff for Bon Homme County. As of this moment you are no longer an employee of Bon Homme County. Please turn in all equipment belonging to Bon Homme County by 5 p.m. on June 6, 2018," the notice said.

Gramkow did not give a reason for the firing, and declined to speak to the news outlet. Maggs said he wanted to speak with the county commission before commenting publicly.

The AP notes that South Dakota is a right-to-work state, meaning that employees can be fired without just cause and that the state's sheriffs can hire and dismiss personnel.

Bon Homme County Commissioner Russell Jelsma told the local newspaper that the issue will likely be brought up during a county board meeting on Thursday.