The Islamic State group claimed responsibility Saturday for the truck massacre in Nice, as France highlighted the "extreme difficulty" of preventing such attacks amid tough questions over security failures.