Using an Infrared Beam
The IR assist beam in an autofocus camera switches on for a couple of seconds, allowing you to focus, and then switches off automatically, when your focus is fixed. Remember to purchase one for yourself, and to keep it handy in such situations. Hit your subject with the beam of light, and focus on your subject, then turn off the light and shoot your picture.