Hydrodynamic simulations of disrupted planetary accretion discs inside the core of an AGB star