St. Louis prosecutors abruptly dismissed charges against Missouri Gov. Eric Greitens on Monday afternoon.

St. Louis Circuit Attorney Kim Gardner said in a statement that the move came after Judge Rex Burlison agreed to a request by lawyers for Greitens to call Gardner herself as a witness. For weeks, defense lawyers have accused Gardner of improperly allowing a private investigator working for her team to commit perjury.

Gardner said the judge’s decision put her in an “impossible position” in which she would be “subject to cross-examination” by members of her own office.

Greitens had been charged with allegedly blackmailing a woman with whom he was having an affair by taking a semi-naked picture of her and threatening to release it.

In a string of tweets, the governor celebrated his “victory” in the case. He apologized to his family and the people of Missouri, saying that the “humbling” experience had taught him “wisdom.”

Today, the prosecutor dropped the false charges against me. This was a great victory and a long time coming. I've said from the beginning that I am innocent. — Eric Greitens (@EricGreitens) May 14, 2018

He faces another charge, also brought by Gardner’s office, of felony computer tampering. He is accused of illegally obtaining a donor list from a veterans charity he founded and using it to fundraise for his 2016 gubernatorial campaign.

It’s unclear what will happen with the computer tampering case, but Greitens’ legal team said that it should also be turned over to a special prosecutor because of Gardner’s “clear conflict” of interest.

A Missouri House special committee is investigating all of the allegations against Greitens, and is expected to make a report laying out their recommendations, which could include the governor’s impeachment.

The full statement from Gardner’s office is below:

Since January, Governor Greitens and his defense team have taken a scorched-earth legal and media strategy and relentlessly attacked the intentions, character and integrity of every person involved in investigating the Governor’s behavior including Missouri House Committee members, the Attorney General, the Circuit Attorney and her team, his victim, her family and those who have called for his resignation.