France knife attack has 'shocked' nation, prime minister say