Recep Tayyip Erdogan has been hailed as the politician who finally tamed Turkey’s powerful military. Yet on Friday night, the president was forced to call his supporters to the streets to fend off an attempt by a group of military officers to seize power.