Some political analysts are saying that this coup was staged by Erdogan to get rid of the remaining opposition.
Basically the theory is that there was a very weak plan in effect that the government knew about, and helped move it along (to get it started). While being completely prepared to deal with it.
http://www.zerohedge.com/news/2016-07-16/erdogans-counter-co...