Accretion-induced quasinormal mode excitation of a Schwarzschild black hole