The prime minister says he is increasingly worried a number of countries are behind attacks in the UK.