No one was badly hurt in the incident but at least seven officers were hospitalized after protests in Boston, officials said.