I'm so sorry.....you did what you could though. At least he isnt squirming around anymore and in pain.
First time I've ever heard of a shrimp getting stuck...maybe someone else will learn from this. Thats the best you can hope for.
Good luck, again, soo sorry abotu your shrimp