Chimps attack people after habitat loss