Electron injection by relativistic protons in active galactic nuclei