Dynamical heating of stars as a fueling mechanism for active galactic nuclei