A container ship registered in Singapore sank in the Strait of Hormuz after it was hit, and a second vessel also suffered damage in the same incident.