Putin says ex-Soviet states could face terrorism