The army has taken over after Gen Z-led protests over power outages and water shortages grew into wider discontent.