Absorption of gamma-ray photons in a vacuum neutron star magnetosphere: I. Electron-positron pair production