Media playback is unsupported on your device Media caption US Attorney General Eric Holder: "What happened last night was a pure ambush''

The shooting of two police officers in Ferguson, Missouri, was a "heinous assault" that could undermine police reforms, said the US attorney general.

Two officers were seriously injured early during protests following the resignation of the police chief after a damning report about racial bias.

Such violence was "repugnant", Attorney General Eric Holder said.

The fatal shooting of a black teenager last year in Ferguson sparked protests about the police use of lethal force.

Shots were fired on early Thursday morning from about 125yds (114m) away as a demonstration was breaking up in the St Louis suburb of Ferguson following the resignation of the city's police chief, Tom Jackson.

One officer was shot in the face and one in the shoulder, but both were released from hospital on Thursday.

Police have taken two men and one woman into custody for questioning, but no arrests have been made.

On the scene: Laura Trevelyan, BBC News, Ferguson, Missouri

The sun is shining in Ferguson, Missouri, but tension is not far from the surface.

Ferguson's police are on edge, feeling under siege after two of their own were shot, while African Americans have lost trust in the law enforcement officials meant to protect them.

"I am afraid this town is going to burn down tonight," one white resident tells me on Thursday just a few blocks from the police station.

Members of the faith group Clergy United say the protests will go on until there is wholesale reform of not only Ferguson's police department but the court and municipal systems, which discriminate against African Americans.

Pastor Michael Robinson, who has been protesting since an unarmed Michael Brown was killed by a police officer last August, is calling for the resignation of Ferguson's mayor.

On Thursday night more protests are anticipated - they will be policed by the St Louis County Police Department and the highway patrol.

Describing the assault, Mr Holder said: "Such senseless acts of violence threaten the very reforms that non-violent protesters in Ferguson and around the country have been working towards for the past several months."

He later added that the shooting "turned his stomach" with disgust.

President Barack Obama tweeted "violence against police is unacceptable" adding "Path to justice is one all of us must travel together".

Several witnesses said the shots had come from a hill on the other side of the street from the crowd of protesters.

"We were very close to having what happened in New York last year," Mr Belmar said in a press conference on Thursday, referring to two police officers shot and killed while on duty.

Image copyright Reuters Image caption Police rush to a fellow officer hit by gunfire

Image copyright AP Image caption Emergency services put a police officer in an ambulance after shots were fired early Thursday morning

He added it was a "miracle" there were no injuries or deaths given the amount of gunfire he heard in protests last summer and autumn.

The St Louis County police chief said after hearing the gunshots many officers had drawn their weapons but no-one had fired.

The shootings occurred during protests after the announcement that Mr Jackson would resign.

He quit one week after a report alleging widespread racial bias in his department and the city's court system.

Racial bias in Ferguson 93% of people arrested are African Americans, whereas only: 67% of Ferguson population is black 96% of people arrested for outstanding municipal warrants are African American

95% of "Manner of walking in roadway" charges were against black people

90% of documented force was against African Americans

30% of searches of white suspects resulted in a contraband finding - compared with 24% of black suspects GETTY

Mr Jackson was the sixth Ferguson official to be fired or step down. He had initially resisted calls from protesters and some state leaders to resign.

He was widely criticised after the shooting of 18-year-old Michael Brown in August and the weeks of demonstrations that followed.

Brown's killing was one of several recent cases around the US in which the deaths of black men at the hands of the police have triggered protests.

On Thursday, his family said in a statement they rejected "any kind of violence directed toward members of law enforcement".

"We specifically denounce the actions of stand-alone agitators who unsuccessfully attempt to derail the otherwise peaceful and non-violent movement that has emerged throughout this nation to confront police brutality," they said through their lawyer Ben Crump.

Media playback is unsupported on your device Media caption Eyewitness Keith Rose: "I saw one officer covered in blood"

Ferguson - key moments

9 August , 2014: White police officer Darren Wilson shoots dead unarmed black teenager Michael Brown

, 2014: White police officer Darren Wilson shoots dead unarmed black teenager Michael Brown 15 August : Authorities identify Mr Wilson, following days of protests and clashes with police

: Authorities identify Mr Wilson, following days of protests and clashes with police 10-13 October : Activists from across US hold four days of rallies and vigils in Ferguson

: Activists from across US hold four days of rallies and vigils in Ferguson 24 November : Grand jury decides not to charge Mr Wilson, triggering further demonstrations

: Grand jury decides not to charge Mr Wilson, triggering further demonstrations 4 March : Department of Justice issues report alleging widespread racial bias in Ferguson police department

: Department of Justice issues report alleging widespread racial bias in Ferguson police department 11 March: Police chief Thomas Jackson announces his resignation

How Ferguson unrest spread

Report on Ferguson police report - key findings

Are you in Ferguson? What's your reaction to the news? You can share your experiences by emailing haveyoursay@bbc.co.uk. If you are available to speak further with a BBC journalist please include a contact telephone number.