Turkey coup: military says it controls country

An attempted coup is underway in Turkey. Earlier today, barricades were erected on bridges in Istanbul and jets were spotted flying low in Ankara; by 11:30 p.m., the Prime Minister said that the government remained in charge; shortly before midnight, the military—or at least part of it—said it was.

Updates in reverse chronological order:

At about 12:45 a.m., Erdogan used FaceTime, Apple's video chat app, to contact a reporter; claims he's safe and that the coup will fail.

By 12:30 a.m., constant rumors were flying about Erdogan's location. Before the coup reports came in, he was reportedly out of the country, and since then has been widely reported to be requesting asylum in Germany, landed in Italy, or forced to land elsewhere. UK tabloid The Mirror claims he fled the country at the outset of the coup in a private jet, but their source is an anonymous tweet.

Earlier:

Gunfire was also heard outside Istanbul police HQ and tanks are said to be stationed outside Istanbul airport. All flights are cancelled.
CNN Turk reported that President Recep Tayyip Erdogan was "safe" but did not elaborate.
A statement from the military group read out on NTV television said: "The power in the country has been seized in its entirety." Who represents the group remains uncertain.
But Mr Yildirim told NTV by telephone: "We are working on the possibility of an attempt. We will not allow this attempt.