An escaped "unicorn" was rescued after a four-hour chase through the streets of Madera County in California.