Man killed during shooting with off-duty officer