I guess it's Photoshop. For these kinds of effects, you can use textures or half-transparent images to overlay on your image. I found few tips on how to do it at the website https://eduzaurus.com/plagiarism-checker where different instructions about photo editing are. Or if you need the most realistic pic try using additional tools like real cannon fire.