Five-hour rescue saves horse stuck in mud