The French counter-terrorism office has launched an investigation into an attack on a Paris police officer at the Notre Dame Cathedral.