Fighting between armed Sunni and Shiite groups in Pakistan has killed at least 37 people and injured 25 others, a senior police officer said on Saturday.