I just bought a pellet gun at BPS yesterday in Foxboro for this very reason. I wasn't asked for any i.d. for the gun or ammo. On a side note, do not EVER try to go to BPS when Taylor Swift is in town.
MA law states that the only requirement for pellet guns or pellet ammo is to be 18+.