Propagation of a short-pulse laser-driven electron beam in matter