Afghans hold Pakistanis for plot to kill U.S. envoy