An earthquake of magnitude 5.4 shakes Papua New Guinea at a depth of 124.2 kilometers.