Pakistan and Afghanistan have accused each other of harboring terrorists responsible for cross-border terrorism.