No, the berry activates after the Pokemon is hit, meaning Shedinja will faint, and the Berry will not be consumed, and it will not disappear since it was never actually used.