The conditions for formation of the population inversion of the energy levels yielding the helium atomic transitions 33 S-23 P (λ = 706.5 nm) and 33 D-23 P (λ = 587.6 nm) are determined for the He-H2 plasma excited by a beam of low-energy (2-10 keV) electrons.