An evidence of flare energy buildup and release related to magnetic shear and reconnection