A federal judge in Denver followed the recommendation of Justice Department prosecutors and refused to release Najibullah Zazi , a permanent U.S. resident , who allegedly told federal agents that he had received weapons and explosives training in a conflict-laden region of Pakistan with ties to al-Qaeda .