Nonlinear magnetization dynamics in a ferromagnetic nanowire with spin current