How does a black hole admit gamma rays?

Just like any matter, light or other electromagnetic waves (this includes gamma rays), if they happen to get within the black hole's event horizon, will just get absorbed, slightly increasing the mass of the black hole.