Gamma-ray emission of active galactic nuclei as a signature of relativistic electron-positron beams