Resonance scattering of Lyman-alpha in the presence of an electrostatic field