NEWFIELD, Maine (NEWS CENTER) -- Even a taser blast couldn't spare a York County Sheriff's Deputy from receiving a beating as he tried to make an arrest in Newfield.

The disturbance began at 5:30 p.m. on Saturday when a homeowner was approached on her porch by an unknown man. The homeowner later told police the man was screaming that he was on drugs and someone was after him. Before going to the door, the woman told her two children, ages 12 and 17, to go to another room.

The woman told police the man then pushed his way inside and grabbed her wrist, letting go when the family dog growled at him. The intruder stepped back outside to talk to two other men who had subsequently arrived and were trying to convince him to leave. The homeowner took that opportunity to call police.

As the conversation between the men grew heated, the alleged intruder put his fist through a window resulting in a cut to his arm at which point the two other men returned to their vehicle and drove off.

A York County Sheriff's Deputy was the next person to arrive at the home, and he attempted to handcuff the remaining man. The deputy said the man broke free and hit him in the face, head and neck. In an attempt to protect himself, the deputy said he hit the man with several taser blasts, but the attacks kept coming. The alleged assailant was finally brought under control when a second deputy arrived ten minutes later. The deputy who was beaten was treated at the hospital for small cuts and contusions.

Upon arrest, the suspect was identified as 19-year-old Trevor Cox, from Lynnfield, Mass. Police said Cox went to the hospital to be treated for minor injuries and to be evaluated for drug abuse. He finally ended up at York County Jail with bail set at $5,000. Cox faces charges of Aggravated Criminal Trespass and Assault on a Police Officer. He is due to be arraigned on Tuesday in a video conference at Springvale District Court.