Computer simulation of passage of an electron beam through a plasma