This is Theorem 1 in Chapter IV-1 of Weil: Basic Number Theory. See also Corollaries 1-2 after the proof of this theorem.