Terahertz Switching Action of a Double-Barrier Resonant Tunneling Device