first off, your title and the explanation seem entirely different from each other to me. and to the title (with or without the explanation you give) i would mostly say, you don't explain such a thing. you could have conversations with friends about the problems of prisons, how they were started, how they are mostly used, how the fairly infrequent crime that happens (like the one you describe) is used to justify a much huger percentage of victimless, economic, etc criminals being incarcerated and used as slave (or virtually slave) labor, how prisoners and prison labor are an integral component in capitalism at this point, etc. (but as you allude, part of the point of such conversations is that they can be context-sensitive.)
to respond to your final question, what kind of solution (if that word applies) there is would depend on what you think the cause of crime is. is it broken systems and social ties that break people? is it inadequate responses to mental issues that people have? there are many different opinions, all of them held by anarchists of various sorts. if you have an opinion on what causes this kind of action, then you could give it and people could discuss how anarchists would (or wouldn't) enact it in a different world.