Confusion deepened Wednesday in the Strait of Hormuz as Iran attacked three ships near the crucial waterway whose closure has plunged the world into an energy crisis after tankers carrying a fifth of the world’s oil were blocked from using the channel.