Man accused of beating, killing ex-wife's boyfriend with baseball bat