An earthquake that shook western Montana on Tuesday evening was centered 44 miles west of Challis, Idaho, and measured magnitude 6.5, according to the U.S. Geological Survey.