Dynamics of magnetically stabilized laser discharge