Agent uncovered jihadist plot