Time-dependent transport of electrons through a photon cavity