An oil tanker struck a mine while attempting to pass through an area in the Strait of Hormuz prohibited by Iran, the Iranian army said.