A man was killed after threatening confrontation that led to him being shot by police outside his Layton home, police say.