Egypt's military coup against its first democratically elected president revealed how fragile new democracies can be.