The president said he would allow Israel to “knock the crap” out of Hamas if the group refused to disarm.