WASHINGTON—Iranian patrol boats opened fire on a Singapore-flagged oil tanker as it moved through the Strait of Hormuz in a confrontation that raised new concerns about Iran’s attempts to exert more control of commerce in the Persian Gulf.

For the second time in two weeks, Islamic Revolutionary Guard Corps Naval patrol boats confronted a commercial ship moving through the strait and ordered it into Iranian waters on Thursday, according to U.S. officials.

...