Allergic reaction to Brufen maybe seen incase of asthma. However that being said, the swelling is mostly because of infection present with respect to the offending tooth. The panoramic would give a better idea and help in diagnosis for certain.
Next Steps
Schedule an appointment with the dentist for a root canal of the offending tooth