Firefighters have tried to free a two-year-old girl from north-west China after she got trapped in a washing machine.