Man surrenders after 8-hour SWAT standoff