A boil can be caused due to various reasons like decay, forceful impact on tooth, gum inflammation etc.
Only with the help of an X-ray, treatment can be decided.
Next Steps
Consult a Pediatric dentist ( dentist who specialises in treatment of kids)
Health Tips
As a boil is a source of infection, it should be treated as soon as possible.