$AB$ is the chord of the circle $S$. Circles $S_1$ and $S_2$ touch the circle $S$ at points $P$ and $Q$, respectively, and the segment $AB$ at point $K$. It turned out that $\angle{PBA}=\angle{QBA}$. Prove that $AB$ is the diameter of the circle $S$.