AGN feedback in elliptical galaxies: numerical simulations