Police on Tuesday arrested an armed 31-year-old German man who boasted during a sting operation that he had supplied the Glock 17 pistol used by a gunman who killed nine people in Munich on July 22, the Frankfurt state prosecutor said in a statement.

Authorities arrested the man, who was not named, in Marburg, about 100 km (65 miles) north of Frankfurt, after contacting him on the so-called "dark net" and posing as buyers for an automatic weapon and another Glock 17 pistol for €8,000 ($9,021), it said.

The man's claims were supported by evidence gathered by the Munich prosecutor's office and Bavarian state police, the statement said.