First, note that $3 \mid (4^2-1) = 3\cdot 5$, but while $3\mid (4-1)$, we don't have $3\mid (4+1).$ So your sentence beginning with "I know that..." is incorrect.
Second, let's think about the counterexample for when $n$ is even. Just take $n=2$ and $y$ any odd number, say $y=5$. Then $2 \mid (5^2-1) = 4\cdot 6.$ Then compute $\gcd(2,4)\cdot\gcd(2,6) = 2\cdot 2 \neq 4.$ This counterexample should give you some insight as to what's going on in the odd case. The key fact is that $y-1$ and $y+1$ differ by $2$, so the $\gcd(y-1,y+1) =1$ or $2$. So the only prime factor that $y-1$ and $y+1$ could have in common is $2$.
Third, suppose $n$ is an odd prime number $p$. If $p\mid y^2-1$ then either $p\mid (y-1)$ or $p\mid (y+1)$ but not both because of the above paragraph. Then one of $\gcd(p,y-1)$ or $\gcd(p,y+1)$ equals $p$ and the other equals one. So you must have $\gcd(p,y-1)\cdot\gcd(p,y+1)= 1\cdot p = p.$ So the theorem holds for $n$ and odd prime.
Fourth, you should be able to extend this into a nice proof for general odd $n$.