Iranian officials have threatened to mine the waterway, which is a key shipping route for oil and gas.