Update: A government spokesperson said the coup had been defeated; currently waiting for official confirmation. There is also information 17 police officers have been killed during the attempted coup.

Tanks have opened fire near the Turkish parliament building, Reuters reports, following similar reports from NTV and local journalists about gunfire in Ankara and Istanbul.

Turkey’s armed forces have said they “fully seized control” of the country on Friday night.

Protesters have heard Erdoğan’s call to take to the streets, though, and some are chanting “shoulder to shoulder against the coup”. Others have squared off with military forces who’ve closed bridges and streets. In one video, a policeman and military officer argue in a crowd in the street; in another, cars jammed in traffic honked horns in unison as people mill among them. In a third, a crowd sings and lifts up a huge Turkish flag.

The White House has just released a statement on the reports of an attempted coup, saying that Barack Obama and secretary of state John Kerry “agreed that all parties in Turkey should support the democratically-elected Government of Turkey, show restraint, and avoid any violence or bloodshed”.

The state department will “continue to focus on the safety and security of US citizens in Turkey,” the statement added.

Crowds are right now flooding onto the streets, gathering at the Bosphorus Bridge and Taksim Square, apparently heeding the request from president Recep Erdoğan to resist the attempted coup, the Guardian reports.

Turkish civilians are directly defying a command from the military waving flags, which has declared martial law and implemented a curfew.

Civilian men marching and chanting through Istanbul Ataturk International Airport, in residential streets in the suburbs of the city even confronting military vehicles on bridges, or near government buildings, alongside the sound of occasional gunfire.