A federal judge this week sentenced an Alabama man to 10 years in prison for transporting sexually explicit photos of a minor, officials said.

U.S. District Judge Richard T. Haik also sentenced Mario Duran, 50, to five years of supervised probation and ordered the Jemison, Alabama, resident to register as a sex offender once he’s released.

Acadia Parish Sheriff’s deputies were investigating a criminal case at a Crowley Wal-Mart in 2014 when they ran across Duran in his truck in the parking lot, U.S. Attorney Stephanie Finley said.

With Duran were two underage girls, who told deputies they didn’t know the man who had picked them up in Alabama. The girls said Duran was to transport them to Texas to meet their father, said Finley, who in an email recounted testimony at Duran’s plea hearing in June.

Deputies searching Duran’s truck found three cell phones, and one of the phones had sexually explicit photos of a minor, Finley said. She said the images were not of the girls riding with Duran.

The case was investigated by Acadia detectives and agents with Homeland Security, and prosecuted by Assistant U.S. Attorneys Jamilla A. Bynog and Myers P. Namie.