The students were called to the principal for a steamy encounter