The social unrest echoed similar disruptions in recent years in countries from France to Ecuador and Nigeria, triggered by state-led efforts to curb consumption of carbon-polluting fuels by hiking prices.