The Tory leadership contestant accused the Prime Minister of "playing politics" over the small boats crisis.