Man rescues dog from freeway