Former CIA contract psychologist James E. Mitchell said he did so after he consulted a lawyer at the agency’s Counterterrorism Center about how to make the threat without violating the Torture Convention.