Secure Resource Allocation via Constrained Deep Reinforcement Learning