Two oil tankers were attacked and left adrift on Thursday in the Gulf of Oman, driving up oil prices and stoking fears of a new confrontation between Iran and the United States.