that is probably an abscess
developed under the tooth usually from a chronic cavity
that got to the nerve
of that tooth , that in turn caused that abscess to develop under the tooth,you need to see a dentist ASAP , to diagnose and discuss treatment options wether by root canal
treatment to the tooth after antibiotic treatment
to clear infections,or by extracting that tooth also after antibiotics.