South Korean President Yoon Suk Yeol was detained after he attempted to declare martial law last month.