Cosmology with the pairwise kinematic SZ effect: calibration and validation using hydrodynamical simulations