Thank you for your query,
It looks like an abscess
developed there with localization of pus.
If it is an abscess, it should be drained and antibiotic has to be started.
So consult your Pediatrician
or a Pediatric dentist
for the examination and proper treatment.
Hope I have answered your query.