Fano resonance in nanoscale structures