Brooklyn rabbi and teacher arrested in child porn case