Upwards of five officers have been killed and six injured in Dallas during protests against the shooting of black men by police.