DERRY — A local man faces multiple felony charges after he allegedly posted threats on his Facebook page to kill his therapist and police officers on Thursday.

Shawn Decoste, 36, then charged at officers with a claw hammer and tried to grab the gun of one officer when police came to check on his welfare, police said in a press release .

Decoste, of 109 Franklin St, apt. 3D, was arraigned in 10th Circuit Court in Derry today on charges of first-degree assault, attempted first-degree assault, (attempted) taking of a police officer's firearm, all felonies; and a misdemeanor charge of resisting arrest.

Police had gone to the apartment and announced their presence. When they entered the apartment, they called out to Decoste to come out from a bedroom of the apartment, police said.

Decoste emerged from the bedroom with a claw hammer and charged at them, swinging the hammer at the first officer's head. The officer was able to deflect the blow but was hit on the forearm with the hammer.

A struggle then ensued as officers tried to take Decoste into custody. During the struggle, Decoste attempted to pull an officer's handgun from his holster. The officers then used a taser to finally subdue Decoste and arrest him, according to police.

The name of the injured officer wasn't available and police didn't say what prompted Decoste to make the threats.

Decoste's bail was set at $250,000 cash. He remains in custody at the Rockingham County jail. He is scheduled for a probable cause hearing before Circuit Court on Monday, Jan. 13.