A 2.5-magnitude earthquake has rattled areas near Lexington and Columbia, South Carolina, on Thursday afternoon.