There are some articles on this issue. After reading them I arrived to the conclusion that actually nobody knows the answer to this question. Probably macrophage death in the tumor area is the result of extreme acidity and hypoxia besides immune checkpoints defense.
Macrophages do eat tumours and they take care of cancerous cells. This means the macrophages have taken care of the cancer and is taking action against it.