Application of the Model of “Quantum” Metamaterials: Regular and Stochastic Dynamics of Nanolaser (Spaser)