$\newcommand{\bbx}[1]{\,\bbox[15px,border:1px groove navy]{\displaystyle{#1}}\,}
\newcommand{\braces}[1]{\left\lbrace\,{#1}\,\right\rbrace}
\newcommand{\bracks}[1]{\left\lbrack\,{#1}\,\right\rbrack}
\newcommand{\dd}{\mathrm{d}}
\newcommand{\ds}[1]{\displaystyle{#1}}
\newcommand{\expo}[1]{\,\mathrm{e}^{#1}\,}
\newcommand{\ic}{\mathrm{i}}
\newcommand{\mc}[1]{\mathcal{#1}}
\newcommand{\mrm}[1]{\mathrm{#1}}
\newcommand{\pars}[1]{\left(\,{#1}\,\right)}
\newcommand{\partiald}[3][]{\frac{\partial^{#1} #2}{\partial #3^{#1}}}
\newcommand{\root}[2][]{\,\sqrt[#1]{\,{#2}\,}\,}
\newcommand{\totald}[3][]{\frac{\mathrm{d}^{#1} #2}{\mathrm{d} #3^{#1}}}
\newcommand{\verts}[1]{\left\vert\,{#1}\,\right\vert}$
\begin{align}
&\bbox[10px,#ffd]{\sum_{n = 1}^{\infty}{\pars{-1}^{n} \over n^{2} + 1}} =
\Im\sum_{n = 1}^{\infty}{\pars{-1}^{n} \over n - \ic} =
\Im\sum_{n = 0}^{\infty}
\pars{{1 \over 2n + 2 - \ic} - {1 \over 2n + 1 - \ic}}
\\[5mm] = &\
{1 \over 2}\,\Im\sum_{n = 0}^{\infty}
\pars{{1 \over n + 1 - \ic/2} - {1 \over n + 1/2 - \ic/2}} =
{1 \over 2}\,\Im\bracks{\Psi\pars{{1 \over 2} - {\ic \over 2}} -
\Psi\pars{1 - {\ic \over 2}}}
\end{align}
where $\ds{\Psi}$ is the Digamma Function. See
$\ds{\mathbf{\color{black}{6.3.16}}}$ in A & S Table
Then,
\begin{align}
&\bbox[10px,#ffd]{\sum_{n = 1}^{\infty}{\pars{-1}^{n} \over n^{2} + 1}} =
{1 \over 2}\braces{{\bracks{\Psi\pars{1/2 - \ic/2} -
\Psi\pars{1/2 + \ic/2}} \over 2\ic} -
{\bracks{\Psi\pars{1 - \ic/2} -
\Psi\pars{1 + \ic/2}} \over 2\ic}}
\end{align}
With
$\ds{\Psi}$-
Recurrence and
Euler Reflection Formula:
\begin{align}
&\bbox[10px,#ffd]{\sum_{n = 1}^{\infty}{\pars{-1}^{n} \over n^{2} + 1}} =
-\,{1 \over 4}\,\ic\braces{%
\pi\cot\pars{\pi\bracks{{1 \over 2} + {\ic \over 2}}} -
\pi\cot\pars{\pi\,{\ic \over 2}} + {1 \over \ic/2}}
\\[5mm] = &
\bbx{\pi\,\mrm{csch}\pars{\pi} - 1 \over 2} \approx -0.3640
\end{align}