Cape and Islands District Attorney Michael O'Keefe said the Falmouth officers were shot around 5:30 p.m. Friday when 21-year-old Malik Antonio Koval, of Falmouth, became agitated and pulled a gun. O'Keefe said Koval was shot multiple times and was taken to a Boston hospital.

One officer was shot twice, in his bulletproof vest and just above it, and was being treated at Falmouth Hospital. The other officer was grazed in the head and was treated and released.

On Friday night, O'Keefe said, "both officers, we are grateful, are going to recover."

Koval's condition wasn't immediately known.

The officers were called to the area when neighbors complained that Koval was breaking bottles, throwing trash into the middle of the street and yelling at a woman in an SUV.

The police officers, after they were fired upon, returned fire, and the individual was hit a number of times," O'Keefe said on Friday.

Koval will face several criminal charges including assault and battery with a dangerous weapon, prosecutors said. He couldn't be reached for comment while hospitalized, and his attorney had not been identified through electronic court records.

"This is happening way to much," said Falmouth Police Chief Edward Dunne. "We've got to return back to a time when police officers were respected, and it's not OK to shoot a police officer."

He said he had a feeling of dread when he heard the call about the officers being shot. "I'm thankful tonight that someone was looking after my police officers and it didn't end up like Yarmouth or Weymouth," he said. "One is too many, and this is getting ridiculous."

Earlier this month, Weymouth police Sgt. Michael Chesna was shot and killed while investigating a car crash. Yarmouth Sgt. Sean Gannon was killed in April while serving a warrant.

Dunne said one of the officers, married with three children, had been with the department for under five years. The second officer shot was single and had been with the department for five years.

Emmalyn Anderson, who identified Koval as her nephew, said he was born and raised in Falmouth. "We do know that Malik has been trying to sort out several different things mentally... he's been trying to get himself well," Anderson said.

"Unfortunately, tonight, things went in a direction that none of us ever anticipated," she said.