The Knight took away resources because it has Charge (3). If you hover your pointer over the red image with the sword near the bottom of the Knight card it will offer an explanation of how the Charge keyword works. Basically, if you still have wall left the Charge effect takes away random resources. Otherwise that number becomes extra damage to your tower rather than lost resources.