Gunmen armed with rifles and pistols opened fire at people sitting in a tavern in the South African township of Soweto in the early hours of Sunday, killing 15 and wounding nine, police said.