Japan has urged Pakistan and India to show restraint