A Phoenix building that houses the office of the Arizona Attorney General has been evacuated after a water pipe exploded, flooding a floor of the building.