Wanted man sets fire to Portland motel before capture