Authorities say Brazilian police are investigating the deaths of two men in an attack on a workers' settlement in Sao Paulo state.