U.S. Attorney for Alaska Bryan Schroder says a Maryland registered sex offender has been sentenced to a total of 43 years in federal prison and a lifetime of supervised released for attempting to make child pornography. The man was prosecuted in Alaska and Florida.

In a news release Friday, Schroder's office says 37-year-old William Patrick King used social media to target a 15-year-old in Anchorage. King harassed and extorted the teen and attempted to get her to self-produce images and videos depicting child pornography.

King used photo-editing software to alter images in an attempt to blackmail the teen and created false online personas to persuade the victim to refrain from reporting him to law enforcement.

King was caught when the teen reported King to an Anchorage Police Department school resource officer.

"The victim exhibited admirable poise under the circumstances and promptly reported King's threats to her Anchorage Police Department School Resource Officers," the release reads.

U.S. District Judge Sharon L. Gleason commended the victim for her courage and maturity.

Schroder also praised the teen, saying "A survivor's report of sexual exploitation to law enforcement is an act of bravery that greatly assists efforts to identify and prosecute dangerous offenders."

APD, with the assistance of the FBI's Child Exploitation Task Force, conducted the investigation. Assistant U.S. Attorney Adam Alexander prosecuted the case.

Copyright 2019 KTVA. All rights reserved.

MORE NEWS FROM KTVA: