Israel had hunted the architect of the 7 October atrocities for more than a year. A chance encounter in Rafah got him.