Particle in a box with a time-dependent δ -function potential