Dynamics of the electron transport in a quantum wire coupled to a quantum-dot array