Authorities say a man charged in the shooting of two police officers last week during a demonstration outside the Ferguson Police Department had attended the protest earlier that night.

St. Louis County Prosecutor Robert McCulloch said Sunday that 20-year-old Jeffrey Williams told police he was firing at someone he was in a dispute with — not at the officers.

Williams is charged with first-degree assault, firing a weapon from a vehicle and armed criminal action. He's being held on $300,000 bond. It wasn't immediately clear whether he has an attorney.

The officers were shot Thursday during a protest hours after the city's police chief resigned in the wake of a Justice Department report that found widespread racial bias in the police department.

Multiple activists say Williams wasn't a consistent fixture in their tight-knit group.