Police were caught up in a gang war on the Cape Flats and had to seek shelter while waiting for back up to arrive.