Islamic State militants say they have killed two hostages - a Norwegian and a Chinese national - after demanding ransoms from their governments.