The United Nations Security Council was unable to condemn the attempted coup in Turkey and the resulting violence after Egypt refused to accept a statement calling on all parties to "respect the democratically elected government of Turkey."

According to unnamed diplomats, Egypt argued that the UN Security Council was not in a position to determine whether a government had been democratically elected and demanded that the relevant language be deleted, a diplomat said, speaking on condition of anonymity.

Despite US insistence, Egypt would not budge.

Turkey and several Security Council members including the United States worried the statement would have been too weak without wording explicitly supporting the Turkish government.

"So there won't be any statement," the diplomat said.

Such Security Council resolutions require unanimous approval from the 15-member group.

The statement, which was drafted by the United States, had "condemned the violence and unrest in Turkey and stressed the urgent need for an end to the current crisis and return to the rule of law."

It called on all parties to "show restraint and avoid any violence or bloodshed."

Egypt's relations with the government of President Recep Tayyip Erdogan have been particularly tense.

Erdogan supports the Muslim Brotherhood of former Egyptian president Mohamed Morsi, who was deposed by the Egyptian army in 2013.

The Turkish leader has denounced that move as a "coup d'etat," drawing the wrath of the Egyptian general behind the ouster, Abdel Fattah al-Sisi, who is now president.

Several Brotherhood leaders are in exile in Turkey, having fled a bloody crackdown against Islamists following Morsi's overthrow.

Egyptians woke up Saturday to find some newspapers announcing the Turkish military's ouster of President Recep Tayyip Erdogan, even as the strongman loathed by Cairo quashed a coup attempt.

"The Turkish army topples Erdogan," declared a red banner on the front page of the state's flagship Al-Ahram newspaper. "Recep Tayyip vanishes," said the subhead.

"Army controls Turkey and deposes Erdogan," the private Al-Watan announced, labeling Friday night's attempted coup by an army faction as "military disobedience".

Some Egyptian media personalities could not contain their glee as news of the attempted coup percolated overnight.

"Good evening, good viewers everywhere! This is a special episode," announced Ahmed Moussa, a pro-government talkshow host on the private Sada el-Balad channel.

"First, what is happening in Turkey is not a coup. Not at all! It is a revolution from within the Turkish military. And whenever the Turkish military conducts a revolution, it always wins!" he said.

The coverage in the Egyptian media and the premature announcements of Erdogan's ouster prompted ridicule on social media.

"The coup is victorious in the pages of Egyptian newspapers," wrote one Twitter user.

Egypt's presidency, meanwhile, has remained mum on the coup attempt, while the foreign ministry released a statement on consular efforts to help Egyptians in Turkey.

Staff with agencies