Powerful quake off north Japan kills two, dozens injured