Turkish military forces on July 16 opened fire on crowds gathered in Istanbul following a coup attempt, causing casualties, an AFP photographer said.
Turkish president described the attempted coup as high treason and said the ring leader, who plotted all this, will have to pay the price in front of the nation.
After violent clashes lasting through the night, soldiers surrendered and the coup was declared a failure.
A total of 1,563 military officers had been arrested, officials said.
They are a faction within the army, and military figures say they are a small group within the First Army, whose headquarters is in Istanbul. A source at the office of the presidency, speaking on condition of anonymity in line with government rules, said the 161 toll "excludes assailants".
"His highness also expressed strong condemnation and denunciation of this failed attempt and Qatar's stand and solidarity with the brotherly Turkish republic in all measures it is taking to protect the constitutional legitimacy and implement the law.", it added.
"The President and Secretary agreed that all parties in Turkey should support the democratically-elected government of Turkey, show restraint, and avoid any violence or bloodshed", the White House said in a statement.
"The Turkish population showed great maturity and courage by defending its institutions", Foreign Minister Ayrault said in a statement.
"articleLocation" Flights to Turkey diverted and departures from Istanbul's Ataturk Airport were canceled as a coup attempt unfolded in the country on Friday and Turkey's military said it had actually seized power.
Ankara has been accusing the movement of running a parallel state and trying to topple the Turkish government.
The government appointed an acting head of the military after Chief of Staff Hulusi Akar went missing. Most of his political support is concentrated in rural, conservative, Muslim areas of the country.
Daybreak - Images are broadcast of scores of troops with arms raised surrendering on a bridge in Istanbul.
Erdogan returned to Istanbul airport during the early hours of Saturday, saying the hotel he was staying at on Turkey's Aegean coast was bombed after he left.
Another broadcaster, CNN Turk, also went off air when soldiers walked into a studio control room and social media outlets were disrupted. Discarded gear was strewn on the ground and people, some holding flags, climbed on to the tanks.
People watch a damaged auto which was crashed by a tank in Kizilay Square as they gather to protest against a military coup in Ankara, Turkey. They needed to secure the support of the public and especially the majority of the military. Turkey demanded their extradition. The president, whom 52% of the people brought to power, is in charge.
CNN-Turk said two bombs hit near the presidential palace, killing five people and wounding a number of others.
Turkey plays a key role in the USA -led coalition fighting the Islamic State group.
A coup against the democratically-elected government could make it hard for the United States to continue to co-operate with Turkey. There were similar celebrations in other government-held cities. Turkey's renewed offensive against Kurdish militants - who seek more autonomy and are implacable foes of IS - has complicated the fight against the Islamic State group.
Erdogan has been accused of undermining his country's tradition of secular government. Gulen promotes a philosophy that blends a mystical form of Islam with staunch advocacy of democracy, education, science and interfaith dialogue.
"It's very clear there was a coup attempt but rapidly the situation turned in favour of the government and Erdogan asked the people to flock into the streets in Ankara and Istanbul and that's what they did". His long-held dream of becoming an executive president is now closer by the day to coming true.
As the night wore on, momentum turned against the coup plotters.
At least 750 people have now been detained in connection with the coup attempt, Turkey's Anadolu Agency reported, citing the country's interior ministry.
Soguel reported from Istanbul.