Prime explosive, throw to dog, dogs picks it up and carries it inside UFO entrance, drops it and runs out, or dies trying, hopefully leaving the explosive close enough to the intended target (and not too close to your own troops). You usually have better option, but sometimes for entrenched enemies. Parrots can be used too, provided you use a grenade and not something bigger.