Nigeria is in advanced talks with Alphabet Inc.’s Google for a new undersea cable to strengthen the West African nation’s digital resilience, a senior government official said.