An Algerian man identified as an Islamic extremist has been arrested after a man was stabbed to death and three police officers injured near a market in France.