You didn't endorse death threats, those threats are not representative of your community, even if it was from them, which it wasn't, and no bad apples should be used to portray an entire community.
However your immature response to the whole thing was the bigger issue.