Complex dynamics of a fiber laser in non-stationary pulsed operation.