Recruiting informants and moles from inside a terror organization is a pretty common method of counter terrorism warfare.
How else do you think terrorism acts are being prevented? A policeman / soldier / agent stumbles upon a guy with explosives randomly in the street?
Nice way blaming a government for having a guy behead a bunch of people, pretty reasonable.