Three members of Japan’s military were killed and another was injured when a shell exploded inside a tank during a live-fire exercise in Japan, officials said.