NEW YORK (Reuters) - A nephew of former U.N. Secretary-General Ban Ki-moon pleaded guilty on Friday to U.S. charges that he took part in a scheme to bribe an official at a sovereign wealth fund in order to sell a building complex in Vietnam.

FILE PHOTO: Joo Hyun Bahn (L), a nephew of former U.N. Secretary-General Ban Ki-moon, leaves a hearing in the federal court in Manhattan with his lawyer, Julia Gatto in New York City, New York, U.S. January 20, 2017. REUTERS/Nate Raymond

Joo Hyun “Dennis” Bahn, 39, pleaded guilty to violating a U.S. foreign corruption law and to conspiracy before U.S. District Judge Edgardo Ramos in Manhattan.

Bahn admitted that in 2014 and 2015, he tried to arrange a bribe to secure the sale of Hanoi’s Landmark 72 building complex, owned by Korean construction company Keangnam Enterprises Co Ltd. Bahn’s father, Ban Ki-sang, was an executive at the company.

Bahn said he believed he was paying a $500,000 bribe to an official at Qatar’s sovereign wealth fund through a middleman, New York fashion designer and blogger Malcolm Harris. In reality, Bahn said, Harris had no connection with any Qatari official and kept the money.

Prosecutors have said that Bahn agreed to pay another $2 million upon closing of the sale.

“I knew what I was doing was a bad act,” Bahn said on Friday.

Bahn is scheduled to be sentenced on June 29. He faces a maximum sentence of 10 years, though prosecutors have agreed that an appropriate sentence would be up to about seven years, according to Bahn’s written plea deal.

Bahn, a South Korean citizen who lives in New Jersey and has worked as a real estate broker in Manhattan, said on Friday that he understood he would face deportation after serving his sentence.

U.S. prosecutors have also charged Ban Ki-sang, who remains at large. Prosecutors have said he enlisted his son to arrange the Landmark 72 sale to help Keangnam deal with a liquidity crisis.

Ban Ki-moon was long expected to make a bid for the presidency of South Korea, but announced in February 2017 that he would not run, decrying “fake news” about him and his family.

Harris pleaded guilty to money laundering and wire fraud in June, and was sentenced to three and a half years in prison in October.

Another man, Andrew Simon, was charged in October with taking part in the attempted bribery scheme. According to a criminal complaint filed in Manhattan federal court, Simon met with Bahn and another person in April 2014 to discuss the bribe payment.

A lawyer for Simon could not immediately be reached for comment.