A dozen uniformed soldiers appeared on state television and a spokesman said they intended to “dissolve all institutions of the republic.”