Fuel retailer Shell has agreed to buy 100,000 barrels of gasoline from Indonesia's state energy firm Pertamina.