The ship, built for subsurface work, is suspected of involvement in espionage that could pose a risk to undersea cables.