A strong earthquake shook western Japan on Tuesday, but no major damage or life-threatening injuries were reported.