Chaos as Afghans in Pakistan flock to reopened border