By Alexander duality, $\mathbb{S}^3\setminus S$ has two connected components with trivial homologies. On the other hand, $A$ is nontrivial in $H_1(\mathbb{S}^3\setminus B)$ — a contradiction.