PARTIZANSKE, Slovakia—For more than two decades, a store in the basement of a Soviet-style building here has sold deactivated weapons and replica Nazi uniforms to private collectors or for use as movie props.

This year, it has also been a source for weapons that European security officials say were later reactivated and used by jihadists in at least two terror attacks on the continent, a chilling exploitation of Europe’s fragmented gun laws.

European...