I had that happen with a WildView STC-TLG1 camera a couple weeks ago that I had placed on a Wild Cherry Tree . I popped the card out and placed the camera on the ground . I carried it back to the truck and placed the camera in a plastic WalMart bag and tied the top shut .
I put the bag in the bed of the truck . When I got home , I ripped the bag open and placed it in a plastic bucket , sprayed wasp / hornet spray int the bucket , put the camera on the bag and snapped the lid on the bucket . About 3 - 4 hours later , I repeated the spray process .
The next day I placed the camera back in the woods on a different tree . As I was turning it on , I noticed a bug in the lens and another in the flash . They were trapped in there . I didn't see anything in there when I returned a couple days later .
Not sure what they were . They weren't ants and they were tiny . A bit bigger that a fruit fly .