No matter how one feels about the issue of transgender people serving in the military, President Donald Trump's sudden announcement — via Twitter — on Wednesday that he was banning them from serving was "bizarre," said conservative commentator Charles Krauthammer.

"The rollout and the timing is simply bizarre," Krauthammer said Wednesday on Fox News Channel's "Special Report."

Trump likely wanted to change the subject from the heat he is facing over his public criticism of his own attorney general, Jeff Sessions, Krauthammer said, as well as the failure of the Senate to pass multiple Obamacare repeal efforts.

If so, Trump is succeeding, he said, but added it still was odd that the order "came out of nowhere" when Defense Secretary James Mattis had requested six months to review the issue.

"Was there a crisis that all of a sudden it had to be withdrawn?" Krauthammer said, noting that the administration wasn't even able to answer questions about whether it affected members of the military currently deployed.

"It's like the release of the executive order on immigration, where they had no answer on what do you do with the person with the green card, and caused that chaos at the airports, when the first version of the travel ban was issued," he said.

"This is not how you run a railroad, no matter how you feel about the underlying issue," Krauthammer said. "This is really bizarre."