You're not in trouble. This happens to thousands of young people, and it's a crime by them, not you. It can be fixed.
Someone is threatening to share my photos or wants money
Step 1 of 6
Stop replying. Don't pay.
Paying almost never makes them stop. It usually leads to them asking for more. You don't have to answer them at all.