An earthquake registering a magnitude of 7.1 shook Kumamoto on Japan’s southern main island of Kyushu late Tuesday afternoon, causing damage and injuries, officials said.