Coherent spontaneous emission from a modulated beam injected in a magnetized plasma