A charged particle in a homogeneous magnetic field accelerated by a time-periodic Aharonov-Bohm flux