Effect of shear on stability and nonlinear behavior of a rotating rod