The situation allegedly escalated when an illegal religious structure next to the railway tracks was partially demolished