Transmission properties of light through a metallic nanoslit with a defected horizontal nanocavity