Since pencils don't contain lead anymore, there should be no risk of poisoning. If she chewed it up into small enough pieces, she should be fine. The wood in the pencil becomes pliable when wet, so it is not like splinters that might hurt her.
Just keep an eye on her for a few days to make sure that nothing stays inside.
Good luck!