Afghan accused of plotting terror attack worked as CIA guard, officials say