Bragg scattering induces Fano resonance in photonic crystals