Illegal miners in a "dangerous" stand-off with police in South Africa are committing a crime by staying underground in a disused shaft, according to a government minister in the country.