I got ants in my Scoutguard many yrs ago.
I sprayed down a rag with RAID and put it in a zip lock bag with the camera doors all removed.
I left it alone for about 24hrs then sprayed the cam out with an air hose.
It's been working fine ever since and I've paid more attention to locking the door this time of yr so it never happens again.