Guard vs Turret. The guard does not attack the turret

The guard walking along the path does not attack the turret of the opposing team. And the turret is attacking the guard.

How can I fix it?

The main goal is for the guard of team №1 to perceive the turret of team №2 as an enemy and attack it. Now, my turret of team №2 destroy the guards of team №1 without resistance.

Hello.
The guard can only attack agents. There is no agent in interactive devices like turrets.
Is that why the guards aren’t attacking the turret structure?