Standoff in Moorhead ends when man apparently kills himself