Exact Solution of a Time-Dependent Quantal Harmonic Oscillator with a Singular Perturbation