Constraining new physics in the TeV range by the recent BNL measurement of (g−2)μ