I came across the following theorem:
Let $A$ be a nonsingular square $p \times p$ matrix and $z$ be a p-dimensional column vector. The matrix $(A - z z^T)^{-1}$ is given by
$$(A- zz^T)^{-1} = A^{-1} + \frac{A^{-1}zz^TA^{-1}}{1-z^T A^{-1}z}$$
Now I tried using $A-zz^T$ multiply the matrix on the right side of the above formula and I cannot obtain an identity matrix. I tried:
$$(A^{-1} + \frac{A^{-1}zz^TA^{-1}}{1-z^T A^{-1}z})(A-zz^T) = I - A^{-1}zz^T - \frac{1}{1-z^TA^{-1}z}(A^{-1}zz^T+A^{-1}zz^TA^{-1}zz^T)$$
This is where I got stuck. Can someone help me on this please?
You've almost got it! There's a small typo in your formula: the last term should be $$ {}+ \frac{1}{1-z^TA^{-1}z}(A^{-1}zz^T-A^{-1}zz^TA^{-1}zz^T). $$ And notice this equals $$ \frac{1}{1-z^TA^{-1}z} \big( A^{-1}z ( 1 - z^TA^{-1}z) z^T \big), $$ which should get you where you want to go.