NBC: South Korean prime minister offers to resign after parliamentary election defeat