Police have launched an investigation after a child was found dead inside a caravan that caught fire.