Let say $\mathcal{F}$ a free locally sheaf, $X$ an algebraic variety and $Z$ a closed subvariety of $X$ of codimension $d$. I want to ask if there exist, or under which codition, an isomorphism beetwen
$$H^{2d}_{Z}(X, \mathcal{F}) \xrightarrow{\sim} H^0(Z,\mathcal{F}).$$ 
More specifically, can one deduce it from a situable spectral sequence?
Thanks for the help.