An earthquake in North Korea on Sunday appeared related to a nuclear test, South Korea’s military said.