A sharp height estimate for compact hypersurfaces with constant k-mean curvature in warped product spaces