Energy deposition due to neutrino pair annihilation near rotating neutron stars