Interestingly enough, the Turkish military actually have something of a constitutional duty to uphold the founding principles of Ataturk. Erdogan has set about trying to erode those principles since he came to power, so he's really left the military with no choice - Corbyn will have a tough time claiming this one!
I think this will be the 5th time that the Turkish military have staged a coup.