Dynamical Casimir effect for TE and TM modes in a resonant cavity bisected by a plasma sheet