The 42-year-old used a school-issued iPad to take pictures of the girls’ while they attended his classes, with the alarm being raised by other students who noticed it.