Sen. Lindsey Graham; Nada Bakos, a former CIA analyst; Michael Weiss, senior editor at The Daily Beast; and former UK Prime Minister Tony Blair. Josh Barro/Business Insider

BEVERLY HILLS, CALIFORNIA — Sen. Lindsey Graham said on Tuesday that the Republican Party had "lost its way" by supporting a candidate who says Middle East and North African countries are better off governed by brutal strongmen.

"You go live in Gaddafi's Libya," he said in a session at the Milken Institute Global Conference. He was addressing Donald Trump, the Republican presidential frontrunner, who was not present.

In a February debate, Trump said: "We would be so much better off if Gaddafi would be in charge right now."

He has also said that the US would be better off with Saddam Hussein still leading Iraq.

"Isn't it too bad that we knocked him out in the first place?" he said in a recent Fox News interview.

"You want to be the leader of the friggin' free world, and you're yearning for dictators," Graham said on Tuesday of his former GOP rival. "I'm a Republican, and my party has lost its way, in terms of the Donald."

Graham, who ran a campaign highly critical of Trump, effectively conceded that Republicans will lose the general election with Trump as their nominee.

"The next president of the United States, whoever she may be," will have to take on radical Islam, he said.

In the same session, former British Prime Minister Tony Blair did not directly answer a question about whether the current chaos in Iraq and Syria is a result of the American-British decision to invade Iraq in 2003. Blair and Graham commiserated over their respective parties' troubles over the past few months.

"You're still a Republican, right?" Blair asked Graham. "I'm in the British Labour Party. We're hanging on in there, in our separate ways."

Like the Republican Party, Labour has suffered from public infighting in recent months, most recently over anti-Semitic comments by prominent party members.