Man shoots girlfriend's ex-husband dead