This is Theorem 1 in Chapter IV-1 of Weil: Basic Number Theory. See also Corollaries 1-2 in the same chapter.