English/AnyA term for when something is funny, but the reason it's funny is itself anti-funny.

I was directed to this subreddit after asking this question in [another thread](https://www.reddit.com/r/funny/comments/46ogho/syrian_prank/d06z9cx). For context, that thread featured a gif of a (presumably) Syrian worker pranking a colleague by dropping a dud mortar shell near him from the floor above. The prank and reaction are funny, but the underlying circumstance (the war) that lends it humor is not. Anybody got a word or phrase for something like this?