The warning comes after a 7.1 magnitude earthquake struck off the southern Japan earlier on Thursday.