SubhanAllah, The process of stinging and dying is called autotomizing and only various honey bees are susceptible. Even if it costs them their lives, these beautiful creatures would do anything to protect their kingdom.
Question: Can nature sin? Clearly this is an act of suicide, but does this action justify cause? If Allah permits this, then do the Mujahideen who trade their own lives for the benefit of their land when aggressors build military bases on such lands have the same fate?