Sometimes it's better to leave them inside.It can do more harm if you try to take them out.As for poisining,most pellets used in air compressed weapons are made of softer materials like aluminium or other light material.They will hopefully just be absorbed by the body.I don't understand why the vet would leave them there! What about infection or lead poisoning?