Gamma-rays from interactions of stars with active galactic nucleus jets