Dynamic transmission and reflection phenomena for a time-dependent rectangular potential