SAN FRANCISCO (KRON)—A man has been sentenced to 10 years in prison Wednesday for traveling out of the country to have sex with a minor, according to the United States Department of Justice.

Shaun Vincent Kelley, 57, pleaded guilty to the court in May.

Kelley allegedly admitted he traveled to Thailand and paid a 14-year-old boy to have sex with him.

He said he did know the boy was under 18 years old. He stayed in Thailand from September 2013 to April 2016.

A grand jury indicted Kelley on a single count of engaging in illicit sexual conduct in foreign places.

The FBI investigated the case.