Gamma-ray emission from accretion onto a rotating black hole