Oil prices rose on Tuesday after reports that the US had attacked military targets on its key island.