South Africa deploys army to curb riots