Newmont bargained with a spymaster nicknamed “the doctor” in its bid to win control of the richest mine in Latin America. But the Peruvian videotaped the pact.