Anomaly Detection via Learning-Based Sequential Controlled Sensing