To the theory of a free-electron laser