Deal reached to build police training facility at center of protests