President describes mistreatment as an “open wound” after protests spurred by video of police beating black soldier.