Ankara - President Recep Tayyip Erdogan on Saturday battled to regain control over Turkey after a coup bid by discontented soldiers, as signs grew that the most serious challenge to his 13 years of dominant rule was starting to falter.After hours of chaos unseen in decades, Erdogan ended uncertainty over his whereabouts, flying into Istanbul airport in the early hours where he made a defiant speech and was greeted by hundreds of supporters.Soldiers and tanks took to the streets late on Friday and multiple explosions rang out throughout the night in Ankara and Istanbul, the two biggest cities of the strategic Nato member of 80 million people.With officials insisting the takeover bid was falling apart, officials said 60 people, mainly civilians, have been killed and 754 soldiers detained.Erdogan predicted the putsch would fail and crowds of supporters of the ruling Justice and Development Party (AKP) came out onto the streets to try to block it.SurrenderREAD: EU: No alternative to democracy in TurkeyThe strongman denounced the coup attempt as "treachery", saying he was carrying out his functions and would keep on working "to the end"."What is being perpetrated is a treason and a rebellion. They will pay a heavy price for this act of treason," Erdogan said at the airport. "We will not leave our country to occupiers."Dozens of soldiers backing the coup surrendered on the Bosphorus bridge in Istanbul they had held throughout the night, holding their hands above their heads as they were detained, television pictures showed.There was chaos in Istanbul as angry crowds took to the streets to boo the passing tanks, with smaller numbers welcoming the troops.As a helicopter flew over the famed Taksim Square, scene of massive anti-Erdogan protests three years ago, the crowd began to boo, shaking their fists at the night sky before they were shot at by the soldiers.The sound of F16 fighter jets flying over the capital Ankara signalled the start of the putsch late on Friday, with troops also moving to block the two bridges across the Bosphorus Strait in Istanbul.As protesters took to the streets, an AFP photographer saw troops open fire on people gathered near one of the bridges, leaving tens wounded.Shots firedREAD: World urges Turkey 'stability, restraint'Soldiers also opened shot at protesters angrily denouncing the coup bid at Istanbul's Taksim Square, injuring several.Turkish army F-16s launched air strikes against tanks stationed by coup backers outside the presidential palace in Ankara, while the parliament was also bombed, leaving its offices wrecked.Regular explosions could be heard from the AFP office situated near the complex.World leaders called for calm, with US President Barack Obama and other Western countries urging support for the government which they said had been democratically elected.In a key moment in the standoff, Turkish security forces rescued the country's top army general Hulusi Akar who reports said had been taken hostage in the earlier stages of the coup bid.Istanbul authorities sought to make a show of normalisation with the bridges reopening to traffic and Ataturk International Airport - which had been shut down by the plotters - gradually reopening.Martial lawAfter the initial dramatic military movements, state broadcaster TRT said the troops behind the putsch had declared martial law and a curfew, in a statement signed by a group calling itself the "Council for Peace in the Homeland".It said the coup had been launched "to ensure and restore constitutional order, democracy, human rights and freedoms and let the supremacy of the law in the country prevail, to restore order which was disrupted".No named military officer claimed responsibility for the actions although Prime Minister Binali Yildirim claimed a key pro-coup general had been killed.Turkey's once-powerful military has long considered itself the guardian of the secular state founded by Mustafa Kemal Ataturk in 1923.It has staged three coups since 1960 and forced out an Islamic government in 1997.