State to shut down smelly dairy farm