Controllable terahertz wave attenuator