Beam-Wave Interaction for a Terahertz Solid-state Amplifier