We have investigated the propagation and amplification of Auroral Kilometric Radiation (AKR) in a narrow three-dimensional plasma cavity, in which a weakly relativistic electron beam propagates along the magnetic field. Both electron beam velocity components, parallel and perpendicular to the magnetic field are taken into account. Although the energy of transverse electron motion serves as a source of free energy for the development of electron cyclotron maser instability, it is found that for correct description of the AKR spectrum formation it is necessary to take the velocity component of electron motion directed along the magnetic field into account, because it gives a possibility for wave generation in a much wider frequency range. The...