At least 46 security personnel, Taliban fighters and civilians have been killed in clashes in the southern Afghan city of Kandahar, officials say.