Two police officers are reported to have been shot during a protest over the police killings of two black men in separate incidents.