You'll need a small “plug” of carpet that matches the damaged piece. If you don't have a remnant, you can steal a piece from inside a closet or underneath a piece of furniture you never intend ...