American going to Pakistan planned to aid Al Qaeda: prosecutor