President Obama and Secretary of State John Kerry have been verbally sparring with Republican presidential candidates following the attacks in Paris.