What you have drawn is a perpendicular from the tangent to PQ. But what is required is a perpendicular from PQ to the tangent. Suppose it intersects the tangent at X, then angle PXA will be 90 degrees. In your diagram, if you draw it, a part of it will be inside the circle.