A 5.9-magnitude earthquake hit Japan injuring dozens, and the PM has warned of a possible aftershock of similar strength.