If you kill one of character you must have a reason for it, a point to make or something to bring to your other characters still alive.
The last Potter book is kinda full of that, quick cheap deaths. I guess the author try to depict how randomly cruel an armed conflict is but in the end the whole thing is a bit awkward and honestly not really effective.
You're shocked alright. But more because of how cheaply the author treated this or this character and not that much by the impact of the death.