**Edited answer**
If you need to use the residue method, you should try the following change of variable : $x=\frac{1-t^2}{1+t^2}$ which will allow you to write $I$ as an integral of a rational function from $-\infty$ to $\infty$. You will be able to use the method you know by using a contour a circumference of radius $R\to\infty$.
_Note_ : In my previous answer, I doubted the pertinence of residues, a statement that has been denied by @RonGordon.