Man accused of stabbing another man in ex-girlfriend's apartment