PORTLAND, Maine — A Brooklyn, New York, man was sentenced Friday in U.S. District Court to 15 years in federal prison for photographing himself having sex with his underage girlfriend and sharing it with others on social media.

Paul “L.T.” Henry, 25, formerly of Portland also was sentenced to five years of supervised release, according to the U.S. attorney’s office.

He pleaded guilty in November to two counts of sexual exploitation of children after a federal judge denied a motion that would have allowed him to argue at his trial that he believed the girl was 19, not 15.

Henry was arrested April 16, 2014, by Portland police, according to court documents. He had been held without bail since then.

By pleading guilty, he admitted to using his phone to film himself on Jan. 25 and 26, 2014, having sex with a 15-year-old girl in an apartment in Portland. Between Jan. 27 and 30, 2014, Henry sent the video from his phone to 10 different people, according to the prosecution’s version of events to which he pleaded guilty.

Portland police seized Henry’s phone and drug paraphernalia on Feb. 12, 2014, when they found him at a local motel as part of a separate investigation.

Henry faced between 15 and 30 years in federal prison and a fine of up to $250,000. He also will be required to register as a sex offender for life.