Proof related to inversions

Let $P$ be a point outside a given circle $q$, let $PT$ be a straight line, and let $PAB$ be a secant with chord $AB$. Then, if $PA \cdot PB = PT^{2}$, then $PT$ is tangent to circle $q$.

The converse of this is not hard to prove, but I'm stuck on proving that statement.