FERGUSON, Mo. —

Two officers were shot outside the Ferguson, Missouri police headquarters early Thursday as demonstrators gathered following the resignation of the city’s embattled police chief, authorities said.

St. Louis County Police Chief Col. Jon Belmar told reporters at least three shots were fired.

He said a 32-year-old officer from Webster Groves, Missouri was hit in the face and a 41-year-old officer from St. Louis County suffered a shoulder wound.

He said both officers were conscious, but described their injuries as “very serious.”

Belmar said he believes the officers were targeted, by someone in the crowd.

Police sources were calling the gunfire an “ambush” and said whoever fired the shots was at large, CBS St. Louis affiliate KMOV-TV reported.

The station says the two victims were standing next to each other, working crowd control.

The shots rang out as a crowd of about 150 people had begun to dwindle, the St. Louis Post-Dispatch reported. Some protesters fell to the ground and others ran. A huge police presence, including officers in riot gear, later surrounded the department.

Bradley Rayford, who was in the crowd, told KMOV, “Bullets went right past my head. … It was traumatic. I’m still in shock because of it.