Vladimir Putin is plotting to attack a NATO territory to test the bloc's mutual assistance clause, Germany's spy chief has warned.