A 5.9-magnitude earthquake struck eastern Japan, shaking Tokyo, injuring several people and disrupting train services. No tsunami was reported.