A city in Texas has been warned by authorities to avoid water from the nearby river after a wastewater line break.