The Pakistani military says 18 civilians and 15 security forces were killed and its response killed more than 90 attackers.