Learning Near-Optimal Intrusion Responses Against Dynamic Attackers