Sad to say, you need to open up the entire unit, clean it and seal it back using Black RTV. But make sure that it's 100% sealed, otherwise, moisture will seep back in no time and you have to redo!
One encouragement for this tedious process is that your headlamp will look very new and shinny after that. You might want to consider taking this opportunity to customize/spray the inside of the headlamp.