I shoot in my basement & have an "official" 10m target range there. Any airgun will do depending on your baskstop, I just use the concrete wall & sweep up the pellets periodically. As has been said, rifles dont really present much of a challenge, even offhand. However pistols are great fun! Crossman 2240 or 1377 are a great & inexpensive way to get into it. They are both fairly accurate very customizeable so there is much enjoyment to be had shooting & tinkering all for relatively little money.
It is of course possible to go hog wild & spend a bundle on target grade pistols if you like as well.