The episode stunned a country that relies heavily on dams to produce electricity and on mining to generate export revenue.