Ayer fire officials say the child was in stable condition.