Feedback from central black holes in elliptical galaxies: two-dimensional models compared to one-dimensional models