First-order phase transition by a spin-flip potential in BCS superconductivity