Dynamical behavior of a doped fiber laser under pump modulation