Time-dependent electron transport in carbon nanotubes with impurities