Chinese villagers attack polluting factory, police