Turkey's prime minister has warned of the possibility that not all of those responsible for last week's attempted coup were apprehended during the ensuing crackdown.

Binali Yildirim said there is "a remote chance some madmen might take action, acting out of a sense of revenge and defeat".

Mr Yildirim also criticised the US for demanding evidence to extradite Islamic scholar Fethullah Gulen, whom Ankara claims is responsible for the coup.

READ MORE: Scots tourists hid in hotel as bullets flew during Turkey's attempted coup against President Erdogan

He said: "Stop standing up for savages who run over citizens with tanks, who strafe people from land and the air."

Meanwhile, Germany called on Turkey to respect the rule of law after Ankara imposed a state of emergency following the failed coup.

German government spokesman Steffen Seibert said several people detained in the wake of the coup had been shown on camera and appeared to have been mistreated.

He told reporters in Berlin that it "raises troubling questions if accused people are seen on television or photos bearing clear traces of physical violence - if individual people are humiliated or denigrated in front of the camera".

The Herald:

Photo credit: AP Photo/Petros Giannakouris

Mr Seibert also said Germany hopes the state of emergency will be as short as possible and that it would have no impact on the deal between the European Union and Ankara to halt the flow of migrants crossing to Europe.

READ MORE: Brexit return to watchtowers, customs and checkpoints on Irish border must not be allowed, leaders say

Earlier, protesters went to the Etimesgut military base in Ankara and parked lorries and a bulldozer outside - possibly fearing tanks might try to leave the facility.

It was not clear what sparked the tension, and power to the base appeared to have been cut.

Parliament voted 346-115 to approve the national state of emergency, which gives sweeping new powers to President Recep Tayyip Erdogan.

He has said the state of emergency will counter threats to Turkish democracy, though critics are urging restraint because they fear the measure would violate basic freedoms.

Even without the emergency measures, Turkey has already imposed a crackdown that has included mass arrests, multiple sackings and the closure of hundreds of schools.

Mr Erdogan said the new powers would allow the government to rid the military of the "virus" of subversion.

READ MORE: Scots tourists hid in hotel as bullets flew during Turkey's attempted coup against President Erdogan

Those recently targeted in the government crackdown include prominent journalist Orhan Kemal Cengiz and his wife, Sibel Hurtas, who were detained at Istanbul's main international airport as they prepared to leave the country on Thursday.

They were taken to police headquarters for questioning, the state-run Anadolu news agency reported.