Calculation of a pair correlation function for the three-dimensional Ising model with long-range exchange forces