A 5.0 magnitude earthquake shook parts of Texas and Oklahoma Thursday morning, according to the United States Geological Survey.