Let $$S=\{(x,y)\in \mathbb{R}^{2} \mid -1\leq x\leq 1,\ -1\leq y\leq 1 \}$$ and let $$T=S\setminus\{(0,0)\},$$ then what about the compactness and connectedness of $S$ and $T$?
Since $S$ is closed and bounded subset of $\mathbb{R}^{2}$, by Hein Borel theorem it is compact. Since there does not exist a separation by open sets $S$ is connected also. And $T$ is obtained by removing the point $(0,0)$. Then how it effects the compactness and connectedness of $T$? Is the same effect when removing any point?
Compactness : In general, removing a point does not preserve compactness.
See that $[0,1]$ is compact but $(0,1]$ is not compact.
You can consider sequence $\left(\frac{1}{n}\right)$ that converges but not to a point in $(0,1]$.
Similarly, the square $S$ you have mentioned is compact, but, resulting space obtained by removing the point $(0,0)$ is not compact. You can imitate the example that I have given to produce a sequence that converges but not in $T$.
Connectedness : Removing $1$ from interval $[0,2]$ breaks the connectedness of $[0,2]$. This can be seen clerarly from drawing that line and removing that point.
Removing line $\{(x,x):x\in \mathbb{R}\}$ from $\mathbb{R}^2$ is not connected as you can see visually.
In general, removing what is called n dimensional subset from a $n+1$ dimensional connected space usually leaves it disconnected.
But, removing a point ($0$ dimensional) from $S$ ($2$ dimensional space) keeps it connected.