The troubled US community of Ferguson, Missouri -- scene of months of protests and racial tension -- was on a knife edge again after two police officers were shot.
Police launched a manhunt, raiding a brick bungalow four blocks from the Ferguson police station and municipal court where the shooting occurred amid a late-night demonstration Wednesday.
Three people were taken in for questioning, but not arrested, St Louis news media reported, as a $10,000 reward was posted for information leading to the shooter.
President Barack Obama and Attorney General Eric Holder were quick to denounce the "ambush," which threatened to derail efforts to calm nerves in the mainly African-American suburb of 21,000.
Speaking on a late night TV talk show, Obama said the shooting was inexcusable and detracted from people who demonstrate peacefully against mistreatment by police.
"They're criminals. They need to be arrested," the president said.
"And then what we need to do is to make sure that like-minded, good-spirited people on both sides -- law enforcement who have a terrifically tough job, and people understandably don't want to be stopped and harassed just because of their race, but were able to work together to come up with some answers," Obama added.
Last year, rioting erupted in Ferguson and protests spread to several US cities after a white police officer shot dead an unarmed black teenager, igniting a fierce national debate about race and law enforcement.
Then last week, Holder's Justice Department said investigators had found evidence of deep-seated institutional racism in the city's government and in the overwhelmingly white police force.
Obama said on the show that protesters in Ferguson has legitimate grievances.
"African-Americans were being stopped disproportionately, mainly so the city could raise money," he added.
About 100 youthful protesters, black and white, returned Thursday night to the Ferguson police station, chanting slogans and occasionally blocking the main street.
They were monitored by two to three dozen police officers and a larger number of reporters and cameramen, as a light rain began to fall.
- Candlelight vigil -
Ferguson leaders have vowed to reform, and several have quit, but officials expressed concern that Wednesday night's shooting -- in which one of the officers was shot in the face -- will only deepen the bitter divide in the community.
"What happened last night was a pure ambush," Holder said. "This was not someone trying to bring healing to Ferguson, this was a damn punk, a punk who was trying to sow discord."
Obama, who on Saturday marked the anniversary of the Selma civil rights march with a major address on the United States' recent history of racism, was also angered.
"Violence against police is unacceptable. Our prayers are with the officers," he wrote on Twitter, warning that the "path to justice is one all of us must travel together."
- 'By God's grace' -
The family of Michael Brown, the young man whose death last year in a police shooting triggered months of protests, condemned the "senseless shooting" and appealed for calm.
Overnight, one officer was shot in the face and the other in the shoulder amid protests outside the Ferguson police station to mark the resignation of the embattled police chief.
At least three shots were fired, witnesses said.
"By God's grace, we didn't lose two officers last night," said St. Louis County police chief Jon Belmar, as detectives combed the scene.
"This is really an ambush," Belmar told reporters.
The shooting came just hours after police chief Thomas Jackson resigned, in the wake of a blistering Justice Department report that uncovered racial bias among his officers.
Protest leaders expressed doubt that the shooter, who is thought to have been armed with a handgun, was among their ranks.
The injured officers -- one aged 41 and the other 32, -- have been released from hospital, the St Louis Post-Dispatch reported.
One still had a bullet lodged behind his ear, Belmar said.
- 'Muzzle flashes' -
Wednesday was the 215th night of demonstrations in Ferguson -- some small, some huge -- prompted by the August 9 shooting of Brown by officer Darren Wilson on a residential street.
Wilson says the 18-year-old tried to grab his weapon, a view accepted by a grand jury and the Justice Department report.
Others contend that Brown had put his hands up in a gesture of surrender when Wilson, who has left the Ferguson police force, opened fire.
Describing Wednesday night's incident, Belmar said officers saw "muzzle flashes" and estimated the shooter was perhaps 125 yards away.
They drew their weapons, but did not fire back into the darkness, he said.
"When the shooting rang out, it took everybody by surprise," Lawrence Bryant, a photographer for the St. Louis American newspaper, told CNN.
The protest had been generally peaceful, with only two people arrested at different moments for blocking the street, Belmar said.