A teacher at an elite private school in California was accused of taking "secret and intimate photographs" of at least four students, according to prosecutors.