Iran would respond to an attack by closing Strait of Hormuz