An Indonesian woman screamed in agony Monday as she was caned in Aceh, the latest in a growing number of women to be publicly flogged for breaking the province’s strict Islamic laws.

Aceh is the only province in the world’s most populous Muslim-majority country that imposes sharia law. People can face floggings for a range of offences — from gambling, to drinking alcohol, to gay sex.

The small drone, with its six whirring rotors, swept past the replica of a Middle Eastern village and closed in on a mosque-like structure, its camera scanning for targets.

No humans were remotely piloting the drone, which was nothing more than a machine that could be bought on Amazon. But armed with advanced artificial intelligence software, it had been transformed into a robot that could find and identify the half-dozen men carrying replicas of AK-47s around the village and pretending to be insurgents.

A local militia is planning an armed protest Tuesday evening at the historic Newton County courthouse after local law enforcement launched an investigation into the group.

The protest is scheduled to take place at the same time as a planned Board of Commissioners meeting that was cancelled due to security concerns. Commissioners were expected to lift a temporary moratorium on new places of worship at that meeting, paving the way for a proposed Muslim burial ground and mosque, which the militia opposes.