Police produced the accused before the court and remanded them to judicial custody until September 1