Realizing Fano-like resonance in a one terminal closed T-shaped waveguide