THz electromagnetic radiation in beam-plasma system under different plasma distribution