In the attached saved game, you can attack the tank on (6,8) with the tank on (5,8). However, the artillery on (5,7) will defend the tank on (6,8). After the fight, the attacking tank has lost two ammunition. Even worse, its new amount of ammunition is negative: -1.
This does not happen, when the defending artillery is not close to the attacker.