Plasma heating by a modulated relativistic electron beam-plasma interaction