Thank you for your query on Healthcare Magic.
Your daughter seems to have a inflammatory skin lesion
of the scalp like a bacterial infection or a localized fungal infection
which is causing pain while combing.
Bacterial infections like pyoderma or a pustule will cause a localized small tender swelling leading to pain on touch.
But local examination is important to know the cause for pain.
If it is due to some bacterial infection it will respond to local antibiotic
cream like mupirocin
So I advise you to consult a doctor for the physical examination and for treatment.
Hope I have answered your query.