A 7.3-magnitude quake has struck off Japan's eastern coast, triggering a small tsunami and sparking evacuations.