Japan minister quits over gaffe in fresh blow to PM