South Korean opposition leader Lee Jae-myung has been attacked and injured by an unidentified man, officials say.