French police have shot and killed a gunman who took hostages at a supermarket in the town of Trebes. The hostage taker killed two people and pledged allegiance to the Islamic State.