3 killed as typhoon nears Japan