The shares would form part of the deceased persons estate.
Therefore, although you may be able to remove the deceased director, the shares would have to be dealt with separately.
I hope this answers your questions. If so, kindly rate the answer and provide feedback.
If you have any further questions, please do not hesitate to ask.