Pakistan and Afghanistan agree to ‘bury the hatchet’