Jewish school rabbi arrested for producing child pornography

This school had a history of such weirdness.
Is religion a curse or a blessing, be it orthodox Judaism or Catholicism or Islam?