President Trump on Thursday blasted Sen. John McCain for criticizing the commando raid in Yemen, saying his reaction “only emboldens the enemy.”

“Sen. McCain should not be talking about the success or failure of a mission to the media. Only emboldens the enemy,” the commander-in-chief wrote on Twitter. “He’s been losing so long he doesn’t know how to win anymore, just look at the mess our country is in.”

The Arizona senator said he wouldn’t qualify the special-operations attack on an al-Qaida outpost in Yemen to be successful because a Navy SEAL was killed.

“While many of the objectives of the recent raid in Yemen were met, I would not describe any operation that results in the loss of American life as a success,” McCain said in a statement on Wednesday.

Chief Petty Officer William “Ryan” Owens, a member of SEAL Team 6, was killed in the January raid and several US soldiers were wounded.

A number of civilians were also killed, including the 8-year-old daughter of US-born Islamic cleric Anwar al-Awlaki, who was killed in a 2011 drone strike.

Despite Owens’ death, Trump said the mission was a success.

“Our hero Ryan died on a winning mission (according to General Mattis), not a ‘failure.” Time for the US to get smart and start winning again!” Trump tweeted, referring to Defense Secretary James Mattis.

White House spokesman Sean Spicer on Wednesday said anyone condemning the raid disrespects the commando’s sacrifice.

“It’s absolutely a success, and I think anyone who would suggest it’s not a success does disservice to the life of Chief Ryan Owens,” said Spicer.

Trump and McCain, who was held captive for more than five years during the Vietnam War, have clashed before.

Last July, Trump said McCain is “not a war hero.”

“He was a war hero because he was captured. I like people who weren’t captured,” he said.