Until recently, the military was widely regarded as Turkish society’s most powerful and cohesive institution. The generals had never been shy about intervening in politics when they felt it necessary.