The Iranian military said that hours earlier, an oil tanker violated regulations by shutting down its identification and navigation systems, ignoring warnings, and entering a restricted area in the eastern part of the Strait of Hormuz. It then struck a mine and caught fire.