Exact kinetic theory for the instability of an electron beam in a hot magnetized plasma