M-estimation for autoregressions with infinite variance