Semilinear elliptic equations with Hardy potential and gradient nonlinearity