A friend of mine lent me a short story a few years ago. It involved a high value political/war prisoner in a prison in space (perhaps he was the only prisoner?). The wardens are trying to interrogate the prisoner, but in the end it turns out that the prisoner was in charge all along, and he executes his plan. I don't remember if he escapes or just sets off a nuclear bomb, but there's a twist ending about how his capture was part of his plan and he was playing the wardens. The prisoner possibly had a military standing. Either an infamous terrorist or a former general turned "bad".
The format he gave it to me was on printed paper bound together with two pages per one side of one A4 paper, and the story was somewhere between 20 and 50 pages long. I don't recall a date, but he gave me the story about 4 years ago so it can't be newer than that, and the writing style felt modern, probably post-90s and even post-00s. I think it was given away with a magazine.