It happened just after 9 a.m. Friday at Williamstown High School.
The school was placed on a temporary lockdown during the altercation, but later resumed normal operations.
The assault led to a large police presence at the school.
Authorities say the school resource officer was treated for injuries to the hands and face.
Police are still investigating what led to the assault.