Time-dependent resonant tunneling via two discrete states