Zallomallo is right. Because the sub submerged, it no longer blocks the amphibious assault and cannot kill the transport. There was no reason for the sub to submerge, however, as the planes could no longer hit it. If the sub did not submerge, the transport could retreat, assuming it had somewhere to retreat to (if not, it would be lost).