Imran blames foreign-funded terrorists for Pakistan attacks