inheritance money

I had $15k that was left to me in my dads credit union money market account.  I closed that account and put that money in a individual TOD IRA.  Do I need to claim that money as a contribution since I inherited it?  When I put it in I am told that I have over contributed and will be penalized. How can I avoid that?