Iran said a foreign container ship ran aground while sailing through the Strait of Hormuz via an “unauthorized” route, repeating its warning that vessels should only transit the waterway in coordination with the Islamic Republic.