(CNN) — Two police officers shot and wounded while standing guard outside the Ferguson, Missouri, police department early Thursday were deliberately targeted in what a police official called an “ambush.”

Such ambush-style attacks were the leading method in the surging number of shooting deaths of law enforcement officers, according to the nonprofit, Washington-based National Law Enforcement Officers Memorial Fund.

The shootings were a chilling low point in the nonstop protests in the city since a Ferguson police officer shot and killed 18-year-old Michael Brown in August.

The demonstrators were out again late Wednesday — in response to the announcement hours earlier of Ferguson Police Chief Thomas Jackson’s resignation — when shots rang out from a hill about 125 yards from where the protesters had gathered, according to witnesses.

St. Louis County Police Chief Jon Belmar said the shootings were an “ambush” intended “for whatever nefarious reason” to inflict harm on the officers. The officers — one shot in the face, the other in the shoulder — have been released from the hospital.

U.S. Attorney General Eric Holder decried the shootings as a “heinous assault (that) was inexcusable and repugnant.”

Calling the shooting a “cowardly action,” Holder said, “I condemn violence against any public safety officials in the strongest terms, and the Department of Justice will never accept any threats or violence directed at those who serve and protect our communities.”

Figures ‘underscore the very real dangers’ officers face

The number of law enforcement officers shot to death in the line of duty rose more than 50% in 2014, the law enforcement group said in a report released in December.

Many of those shootings occurred during police interactions with suspects such as traffic stops, responses to disturbances or attempted arrests. Such was the case with in Baton Rouge, Louisiana, on Tuesday, when Deputy U.S. Marshal Josie Wells was killed in an exchange of gunfire after going to arrest a fugitive murder suspect at a motel.

However, ambushes were the largest single category of circumstances in the shooting deaths of officers the past two years, according to the group’s report.

Fifty officers were killed by firearms — 15 in ambush attacks — in 2014, the Memorial Fund said, compared with 10 ambushes among 32 shooting deaths the year before.

The FBI, however, found that five officers were ambushed and killed in 2013.

Harry Houck, a consultant and former NYPD detective, said officers could be second-guessing themselves as scrutiny of the police increases.

“If an officer is afraid to immediately react the way he’s supposed to,” he said, “that could cost him his life.”

According to the National Law Enforcement Officers Memorial Fund 2014 report, 126 federal, state, local, tribal and territorial officers died in the line of duty in 2014, compared with 102 and 123 the previous two years. Most of the on-duty deaths considered “non-felonious” were from traffic accidents or health reasons.

CNN has not analyzed each case and cannot authenticate the group’s findings.

After the findings were released in December, Holder said: “These troubling statistics underscore the very real dangers that America’s brave law enforcement officers face every time they put on their uniforms. Each loss is both tragic and unacceptable — a beloved father, mother, son or daughter who never came home to their loved ones.”

He added that the Department of Justice is doing its own analysis of officer deaths in 2014 “so we can mitigate risks in the future.”

Memorial fund leader blames ‘rhetoric’

The report’s release came amid simmering distrust and tension between the police and some communities across the country. It was published less than two weeks after the December 20 ambush killing of two New York City police officers.

Ismaaiyl Brinsley, 28, approached Officers Wenjian Liu and Rafael Ramos as they sat in their marked patrol car in Brooklyn on December 20 and shot them to death. He killed himself shortly afterward.

The police memorial fund invoked the memories of Liu and Ramos’ deaths in a December statement.

“With the increasing number of ambush-style attacks against our officers, I am deeply concerned that a growing anti-government sentiment in America is influencing weak-minded individuals to launch violent assaults against the men and women working to enforce our laws and keep our nation safe,” said Craig W. Floyd, chairman and CEO of the police fund.

“Enough is enough,” Floyd said. “We need to tone down the rhetoric and rally in support of law enforcement and against lawlessness.”

That angry rhetoric isn’t confined to the case of Ferguson — or of Staten Island, New York, where the death of Eric Garner in July after police attempted to subdue him spurred national protests and preceded the slayings of Liu and Ramos, said Steve Groeninger, a spokesman for the memorial fund.

Groeninger said the uptick in ambush-style attacks was “punctuated” by the New York officers’ slayings, but there were other targeted attacks against law enforcement in 2014 that concern the fund.

They included:

— In Las Vegas in June, Jerad Miller and his wife surprised two police officers as they ate lunch, shooting them to death. Witnesses said the Millers placed a “Don’t Tread on Me” flag and a swastika on one officer’s body. The couple then died in a murder-suicide as police closed in.

— In Jersey City, New Jersey, in July, police said a man assaulted a Walgreen’s security guard and took his gun in order to carry out the ambush-style killing of an officer, according to the Jersey Journal.

— Two Pennsylvania State Police troopers were ambushed and shot outside police barracks in Blooming Grove in September. The hunt for the alleged killer, Eric Frein, lasted almost seven weeks. He was captured at an abandoned airport on October 30. Frein was hit with terrorism charges in November for allegedly admitting that he shot the officers to change the government and “wake people up.”

But the number of shootings by police officers also are on the rise.

According to data collected by the FBI, there were 461 justifiable homicides in 2013 — the highest level since 1994 and the most recent year available. The figures are incomplete, however, because the shootings are self-reported and not all police departments provide them.

The total number of fatal shootings by police officers is much higher — 1,010 in 2013 and 1,134 last year, according to the nonprofit Fatal Encounters. The group started collecting the data in 2013. Its source of information is different from the FBI’s.

The group’s founder, Brian Burghart, said the figures create a toxic environment for police, as well as suspects.

“When it comes to an eye for an eye, that people are addressing the problems with violence, the numbers are always going to go up on both sides,” he said.

This week, Wisconsin residents took to the streets to protest the police killing of Tony Robinson, a 19-year-old who was unarmed.

Robinson’s shooting was the fourth shooting involving an officer in Wisconsin in the last three weeks. The others hardly made headlines: one involved an armed robbery, another a domestic abuser who put a knife to his girlfriend’s throat, and an assailant with a fake gun.

Last April, Milwaukee police officer Christopher Manney shot Dontre Hamilton, a mentally ill man, more than a dozen times. The officer said he opened fire when Hamilton grabbed his baton and struck him with it. Manney was not charged criminally. Instead, he was fired for not following protocol.

The numbers alone don’t tell the whole story, experts said.

“We need to know the circumstances in each individual case,” Houck said.