The one time I had pest controllers round to deal with exactly that (and incidentally, the nest was resting on the floor and they were eating their way through the plasterboard ceiling), the guy sprayed one can on the nest, cut it open and sprayed another can inside.