This happened to me several times during city sieges. The first time I was using the structure as a wall and had a strong enemy troop move right into it and attack me. At the time I was looking at something else and had no idea where the attack came from and then I noticed a red Hp bar sticking out of the middle of the structure. For a brief moment I thought Stardock had implemented defensive structures that attack
.