Police fired tear gas at students and other groups who threw Molotov cocktails and took to the streets after lawmakers took steps to increase the price of subsidized gasoline.