The government orders the ISPs to cut the connections - how they ISPs actually do it is up to them - whether they power down the routers or simply enable firewall rules.
EDIT: Here's a relevant article by Cloudflare about the Syrian shut-off: https://blog.cloudflare.com/how-syria-turned-off-the-interne...