Chief Judicial Magistrate passes away