Republican notches historic loss in key red state