Forecasting Events in the Chaotic Dynamics of a Fiber Laser