A woman has pleaded guilty to killing a seven-year-old boy in Pembrokeshire.