Here is a chart that describes the practical steps: https://embed.gyazo.com/4324b66e1a3045ad63349061a76f4756.png
According to that illustration, the coup plotters missed the crucial step of breaching the president's residence and capturing him. They completely mistimed the coup when the president was on vacation outside the country. Now he has been able to rally support against the coup and his supporters are on the streets protesting against the army