A Yahoo executive clashed with the new head of the NSA at a conference over the privacy of online data.