Quantum dynamics of a microwave-driven SQUID