BURLINGTON (AP) - A 21-year-old waiting to answer domestic violence charges stabbed another detainee with a pen while filling out paperwork in court and will be charged with attempted murder, police said Monday.

The attack unfolded just before 10 a.m. Monday in the holding area at the Chittenden Superior Court.

Chad Brown, who had been charged the day before with stabbing a woman and injuring two police officers, was shackled to a 48-year-old man and using a pen to fill out paperwork when he lunged, driving the pen into the man's neck and narrowly missing vital arteries and veins, Burlington police said. Brown continued the attack until the man picked up a chair to defend himself and sheriff's deputies entered the room.

Police expect to charge Brown on Tuesday with attempted murder. The victim was treated and released from a hospital.

Brown was in court following an attack Sunday in which police said he stabbed a female relative. When police arrived at the house, he fled into some nearby woods where he was ultimately captured by officers using a dog.

Two officers were injured and the woman suffered multiple cuts on her torso. Brown was charged with first-degree aggravated domestic assault.

It could not immediately be determined if Brown had a lawyer.