The 2.8 magnitude earthquake occurred at about 5:30 p.m. local time on Tuesday, with shaking felt across Virginia and beyond.