Najibullah Zazi , a 25-year-old former airport worker in Denver , Colorado , told a federal court that al-Qaeda recruited him in Pakistan to carry out a suicide attack in protest at the US military presence in Afghanistan .