Dog leads police to burning building