mod $3$ gives $n=2k+1$ is odd.
I'll solve a stronger equation: $x^2-10y^2=-1$, where $x=3^m$, $y$ is any integer.
Here's a long solution that uses Pell equations.
As I said in my answer here (where I also mention where you can see a full solution of a very similar, analogous problem -- solving $5^n=6m^2+1$ in integers), Pell equation $x^2-Dy^2=-1$ has the solutions
$$x_{v}=\pm\frac{(x_1+y_1\sqrt{D})^{2v-1}+(x_1-y_1\sqrt{D})^{2v-1}}{2}$$
$$y_{v}=\pm\frac{(x_1+y_1\sqrt{D})^{2v-1}-(x_1-y_1\sqrt{D})^{2v-1}}{2\sqrt{D}}$$
$v=1,2,\ldots$ Using $v$ instead of $n$ is a good decision here because $n$ already appears in some Diophantine equations.
$(x_1,y_1)=(\pm 3,\pm 1)$.
$$x_{v}=\pm\frac{(3+\sqrt{10})^{2v-1}+(3-\sqrt{10})^{2v-1}}{2}$$
$$y_{v}=\pm\frac{(3+\sqrt{10})^{2v-1}-(3-\sqrt{10})^{2v-1}}{2\sqrt{10}}$$
$v=1,2,\ldots$
$$2\cdot 3^m=(3+\sqrt{10})^{2v-1}+(3-\sqrt{10})^{2v-1}$$
If $m=1$, then we have a solution $(n,m)=(1,1)$. Let $m\ge 2$. Then notice that $2v-1$ is odd, remember the binomial theorem:
$$(3+\sqrt{10})^{2v-1}+(3-\sqrt{10})^{2v-1}$$
$$\equiv 6(2v-1)(\sqrt{10})^{2v-2}$$
$$\equiv 6(2v-1)10^{v-1}\equiv 0\pmod{9}$$
$$\iff 2v-1\equiv 0\pmod{3}$$
$(2v-1)/3$ is odd, therefore $$2\cdot 3^2\cdot 13=(3+\sqrt{10})^3+(3-\sqrt{10})^3\mid $$
$$\mid (3+\sqrt{10})^{2v-1}+(3-\sqrt{10})^{2v-1}=2\cdot 3^m,$$
contradiction. How do I know that $$b_3:=(3+\sqrt{10})^3+(3-\sqrt{10})^3\mid $$
$$\mid (3+\sqrt{10})^{2v-1}+(3-\sqrt{10})^{2v-1}=:b_{2v-1}?$$
((($:=$ denotes "equal by definition")))
Well, the solution of $5^n=6m^2+1$ which I gave in the beginning of this answer uses this
and also see this link from AoPS. I won't be self-contained here.
v_Enhance said that, in this case: "$b_{2v-1}/b_3$ is both rational and an algebraic integer."
Kent Merryfield has a longer answer, which you should see for yourself.