Japan’s coastguard was rushing on Thursday to deal with an explosion aboard a tanker off country’s coast, officials said.