Thank you for your query,
It seems there a local bacterial infection developed causing local cellulitis
Usually it happens after ear piercing and after the changing the ear rings.
Oral antibiotic like cephalexin
along with local application of antibacterial cream like mupirocin will treat the condition.
So consult your Pediatrician
for advise and medical management.
Hope I have answered your query.