Acceleration of particles in the vicinity of a massive black hole