Influence of a periodic magnetic field and spin-polarized current on the magnetic dynamics of a monodomain ferromagnet