An upstate judge on Friday backed the seizure of an upstate man’s firearms in the first known use of a New York’s “red flag” law, which lets cops take weapons from people deemed a threat to themselves or others.

Robert King, 52, was arrested Sept. 3 in New Lebanon — a small town near the Massachusetts...