Electrical equipment seems to attract tobacco smoke. I assume it's something to do with a build up of static.
I'd remove as much of the case as possible and scrub with a washing up liquid solution.
I'd also spray the electronics *carefully* using an IPA spray.
It'll still smell but hopefully less so.
sponix