Yahoo Inc. said it will close its South Korean web portal and an Internet advertising business, cutting its losses in a market where it has struggled for over a decade.