Let say $\mathcal{F}$ is a locally free sheaf, $X$ an algebraic variety and $Z$ a closed subvariety of $X$ of codimension $d$. I want to ask if there exists, or under which condition there exists, an isomorphism $$H^{2d}_{Z}(X, \mathcal{F}) \xrightarrow{\sim} H^0(Z,\mathcal{F}).$$ More specifically, can one deduce such an isomorphism from a suitable spectral sequence?