A compact flange-mounted electron beam source