most probably a false flag. Possibly to create a stronger Erdogen to counter Russian interference.
Normally army does not take so much of time to declare coup and give chance for the opposition to make speeches. This was absurd and insult in the name of coup.