NEW YORK (AP) — An Afghan immigrant accused of plotting a terrorist attack in New York after receiving training in Pakistan was in contact with a senior al-Qaida operative, intelligence officials familiar with the investigation told The Associated Press.