This will be problematic with the ready-made turret behavior. After all, this object is already in the turret's target database and until it is destroyed it will be active as a target.
For this to work well we need to control the aiming and firing of the turret ourselves. And there already check the life of the enemy before the shot.