Spying is getting harder because the same technologies that catch terrorists can sometimes uncover foreign intelligence operations, the director of Israel’s Mossad said on Monday.