Resonant helicity flip of electron neutrino due to magnetic moment and dynamics of supernova