You seem to be suffering from acute cervical lymphadenitis which can feel like a swelling behind the ear. Lymphadenitis occurs secondary to any infection, in your case it may be throat infection. You may need to take antibiotics and painkillers along with antiseptic mouth gargle for few days for faster recovery
Next Steps
Consult nearby ENT specialist for confirmation of diagnosis and appropriate treatment if required