Time-dependent scattering of a composite particle: A local self-energy approach for internal excitations