A Secure Robot Learning Framework for Cyber Attack Scheduling and Countermeasure