A catapult model for the narrow-line region in Seyferts and radio galaxies