Man fatally shot, homeowner detained by Phoenix police