Form 1099 B for 2016. 100% was moved to my IRA in April 2016 for 2015 return. Do I have to still pay tax on Capital Gain? How do I show it was used to invest in my IRA?

In order to invest into my IRA for 2015 tax return $6500, I had funds distributed from one of my Broker accounts.  I obviously need to input the Form 1099 B.  There was capital gain of $2,200 but I thought it wouldn't be taxable since it went directly to IRA?   If it isn't taxable how do I reflect that information into Turbo Tax so my taxes are reduced by said distribution.  If it is taxable, then I guess I bit off my nose to spite my face :(