Sen. Jeff Flake, R-Ariz., said Tuesday that "decency" won after Democratic Alabama Senate candidate Doug Jones beat controversial Republican contender Roy Moore in the state's special election.

"Decency wins," the retiring senator wrote on Twitter.

Flake last week shared on social media that he had donated $100 to Jones' campaign with a photo of his check and a message that read: "Country over party."

Flake was a vocal critic of Moore throughout his campaign following accusations of sexual misconduct leveled at the Alabamian by women for allegedly pursuing them when they were in their teens and he was in his 30s.

Flake's criticism is in stark contrast to President Trump's endorsement of Moore and renewed support from the Republican National Committee.

The Associated Press called the hotly contested race for Jones about 10:30 p.m. local time in Alabama.