Stellar accretion in active galactic nuclei