Democrat Annie Andrews has defeated senator Darline Graham, who was running for her late brother Lindsey Graham's seat in heavily Republican South Carolina.