British and Norwegian militaries led a weekslong operation to deter Russian submarines in the North Atlantic, the U.K. military said.