Those behind the attempted coup would pay the highest price, he added.
Soldiers were earlier seen at strategic points in Istanbul, with jets flying low in Ankara. The area is surrounded by military, but some soldiers have been taken into custody by police. AFP reports Turkish fighter jets shot down the helicopters.
A lawyer for the Turkish government, Robert Amsterdam, said that "there are indications of direct involvement" in the coup attempt by Fethullah Gulen, a Muslim cleric who is living in exile in Pennsylvania.
The coup is "an attempt against democracy and the will of the people". Videos even showed some citizens kicking military soldiers out of buildings and police officers detaining soldiers. CNN-Turk said Akar would now take over the command of the operation against the coup plotters.
There were also reports of blasts at parliament building in Ankara.
A Turkish official says a plane carrying Mr Erdogan has just landed back in Istanbul.
Some Turkish military units have attempted an uprising that will be not allowed to succeed, the country's prime minister said late Friday in a phone interview with Turkish broadcaster A Haber. State-run Anadolu news agency said 17 police were killed at special forces headquarters there.
As the night wore on, momentum turned against the coup plotters.
He also said Canadians already in Turkey "should remain indoors, avoid large gatherings and follow the instructions of local authorities". As those events unfold, some are anxiously awaiting news here in the U.S.
The United States declared its firm backing for Erdogan's government. In the capital Ankara, warplanes and helicopters roared overhead.
2151 - A military helicopter opens fire over the Turkish capital Ankara, witnesses report an explosion in the capital. According to Turkish intelligence sources, he said, "there are signs that Gulen is working closely with certain members of military leadership against the elected civilian government". It resumed broadcasting in the early hours of Saturday.
Early in the evening the coup appeared strong.
"It looks like a relatively well orchestrated coup by a substantial body of the military, not just a few colonels", an European Union source told news agency Reuters. They've got control of the airports and are expecting control over the TV station imminently.
"They were being told what to do from Pennsylvania", Erdogan said of those involved in the coup.
"Given the scale of the operation, it is hard to imagine they will stop short of prevailing".
"This is clearly not some tinpot little coup".
2305 - President Obama says he and Secretary of State Kerry agree that all parties in Turkey should support elected government.
Celebratory gunfire erupted in Syria's capital Damascus after the army claimed to have toppled Erdogan. "Most of them have been in military service, they know what a military government would mean".
All arriving flights are being diverted until then because there is no room for any more aircraft at the congested airport following the suspension of departures since 2031 GMT on Friday, the agency said in a bulletin to airlines.
In a statement, Gulen denied any connection to the coup attempt and said he condemned it "in the strongest terms".