DARPA, America’s resident defense technology agency, is exploring new ways to track and defeat submarines.