CAIRO -- Mohamed ElBaradei, the Nobel Prize-winning diplomat and Egypt's most prominent liberal, said Thursday that he had worked hard to convince Western powers of what he called the necessity of forcibly ousting President Mohamed Morsi, contending that Mr. Morsi had bungled the country's transition to an inclusive democracy.
In an interview, Mr. ElBaradei also defended the widening arrests of Mr. Morsi's Muslim Brotherhood allies and the shutdown of Islamist television networks that followed the removal of Mr. Morsi on Wednesday by Egypt's generals.
"The security people obviously are worried -- there was an earthquake and we have to make sure that the tremors are predicted and controlled," he said.
"They are taking some precautionary measures to avoid violence; well, this is something that I guess they have to do as a security measure," he said. "But nobody should be detained or arrested in anticipation unless there is a clear accusation, and it has to be investigated by the attorney general and settled in a court."
Mr. ElBaradei, whose precise role in the interim government that is replacing Mr. Morsi's is still unclear, vowed to ensure that "everybody who is being rounded up or detained, it is by order of the attorney general -- and being a member of the Muslim Brotherhood is no crime."
In tandem with the military's ouster of Mr. Morsi, the judicial authorities replaced the attorney general he had appointed, reinstating the prosecutor installed by Hosni Mubarak, the autocratic president ousted in Egypt's 2011 revolution.
The Mubarak appointee, Abdel Meguid Mahmoud, spent years in office prosecuting Islamists. But Mr. ElBaradei said the generals had assured him that this time would be different because they intended to operate as an institution in a civilian democracy, with respect for due process and the rule of law.
"There is some concern about a few of them who got asked to appear before the attorney general," Mr. ElBaradei acknowledged. "I was told that there are a number of accusations and they need to be investigated."
But he insisted that military officials had told him that when they detained President Morsi on Wednesday, "he was treated with dignity and respect."
Security officials had told him that the Islamist satellite networks that were shut down "have been calling for vengeance and murder and incitement to kill, so they have to shut them down for a while," Mr. ElBaradei said, and that in some raided stations "there were weapons."
Mr. ElBaradei, in turn, had "emphasized to all the security authorities here that everything has to be done in due process," he said. "I would be the first one to shout loud and clearly if I see any sign of regression in terms of democracy."
On the day of the takeover, Mr. ElBaradei said, he had spoken at length with Secretary of State John Kerry and Catherine Ashton, the European Union's top foreign policy official, to help convince them of the necessity of removing Mr. Morsi in order to restart Egypt's transition to a democratic form of government.
And he insisted that the supporters of the military takeover were "sending a message of reconciliation and an inclusive approach," and that he believed the Muslim Brotherhood should be welcomed back to participate in parliamentary elections and the political process. Muslim Brotherhood officials have so far rejected any suggestion of working with what they called the "usurper authorities."
With so many millions in the street demanding Mr. Morsi's exit and the president intransigent, Mr. ElBaradei argued, a military takeover was "the least painful option."
"We did not have a recall process. People ask for the recall process with their feet in Tahrir Square," he said. "In my judgment, we could not have waited even one more week."
"We just lost two and a half years," he added, "As Yogi Berra said, 'it's déjà vu all over again,' but hopefully this time we will get it right."
This article originally appeared in The New York Times.