Welcome to justanswer
This certainly calls for a visit to a doctor as this may be caused by an infection , allergy,hernia or otherpathologies like varicocele , hydrocele etc..
Some of these may need acute treatment and therefore it is safer to take an opinion of a doctor for this acute swelling
Thanks and best of luck
Hope everything turns out to be good