The Turkish military has deployed in Istanbul and Ankara, and the government has apparently blocked social media in response to what is being reported as an attempted coup.

Turkey Blocks, a Twitter account that regularly checks if sites are being blocked in the country, reported at 11:04 PM Istanbul time that Facebook, Twitter and YouTube were all unresponsive, though Instagram and Vimeo remained available. Access was restored after about an hour-and-a-half, according to the research agency Dyn Research.

Confirmed: Twitter, Facebook & YouTube blocked in #Turkey at 10:50PM after apparent military uprising in #Turkey pic.twitter.com/J9ER5yOGYP — Turkey Blocks (@TurkeyBlocks) July 15, 2016

Some residents of Turkey appeared able to access social media, likely via a VPN or some other anonymizing service. Anyone affected might want to try Tor Browser for Windows and Mac OS or Orbot for Android (or try some of the other circumvention techniques listed here).

The U.S. State Department acknowledged reports of a social media block in the country and suggested anyone trying to contact friends or family use email, text messages or phone calls instead.

Reports that social media is blocked in #Turkey. Use email/phone call/SMS to contact loved ones in area. — Travel – State Dept (@TravelGov) July 15, 2016

Twitter’s policy team said it did not think the site was fully blocked in Turkey. “We suspect there is an intentional slowing of our traffic in country,” Twitter said in a statement posted in English and Turkish. Twitter’s livestreaming app Periscope and Facebook Live appeared unaffected, broadcasting several livestreams from Istanbul.

Facebook did not provide a statement on the reported blocks. “We are aware of reports that YouTube is down in Turkey, however, our systems seem to be functioning normally,” a YouTube spokesperson told TechCrunch.

Many in Turkey are publishing images of military occupation of important landmarks like bridges, and one tweet shows what appears to be a fighter jet flying very low over Ankara. Tanks have been photographed at Istanbul’s Ataturk Airport.

Turkish soldiers block both bridges on the Bosphorus in Istanbul and jets flying low in Ankara. Reason not clear yet pic.twitter.com/tMG7KKYvGh — Selin Girit (@selingirit) July 15, 2016

https://twitter.com/HazalKoptagel/status/754035715709739008

Video of a helicopter opening fire in Turkey via @Havrekhshaeta https://t.co/KcdNIR1Lm4 — BM-21 GRAD (@bm21_grad) July 15, 2016

The Associated Press reports that the Turkish prime minister, Binali Yildirim, has confirmed that there has been a coup attempt by a group within Turkey’s military. Fighting is apparently ongoing. President Erdoğan appeared on Turkish television via Facetime to address the coup.

#Turkey's President appears on local TV via FaceTime, says "attempted uprising" will be given necessary response https://t.co/tFZIRQMB4j — The Express Tribune (@etribune) July 15, 2016

The following statement from the group was reportedly read on local television:

Turkish Armed Forces have completely taken over the administration of the country to reinstate constitutional order, human rights and freedoms, the rule of law and the general security that was damaged. All international agreements are still valid. We hope that all of our good relationships with all countries will continue.

However, the takeover does not seem to be “complete.” Turkey’s prime minister Yildirim said the coup would not be successful.

Turkish President Tayyip Erdogan, who is typically unsupportive of social media, took to Twitter to condemn the coup attempt and call on the country’s citizens to oppose the takeover efforts at the airports and in public squares.

The Telegraph is updating live.

This story is developing; we will continue to update it as more information becomes available.

Additional reporting by Kate Conger.