Do you use a flash? The blur could be due to a slower shutter speed, and your hands move, or shallow depth of field and not fully focused etc
Probably need to narrow the Aperture, higher F value, and use a flash to get more light to be able to do so, and a high shutter speed to stop the ants moving and blurring things.
Tripod could help.