PALM BAY, Fla. -

A Palm Bay police officer was hospitalized after struggling with an unruly 18-year-old attempting to register for adult education classes at Bayside High School.

The incident happened about 10:40 a.m. Wednesday in the principal’s office at the 1,600-student campus at 1901 DeGroodt Road.

The prospective student was taken into custody, Local 6 News partner Florida Today reported.

“The 18-year-old resisted to the point where he punched and kicked the officer. They had to use the Taser to subdue him,” said Yvonne Martinez, spokeswoman for the Palm Bay Police Department.

The school was not placed on lockdown and no other students were affected, school officials reported.

The unidentified man was not a student at the school, officials added.

The officer, whose name was not immediately released, was taken to Palm Bay Hospital for further medical treatment of his injuries.

Charges are pending against the man.