Check for insect stings or puncture wounds (though often hard to pinpoint).
If possible, remove trapped object with tweezers and wash the paw with warm, soapy water.
If you can't see anything trapped in the paw, check the dog's leg to ensure no constricting material is present (which can easily cause swelling).