German police have shot dead a man who tried to attack officers with a knife in the western city of Gelsenkirchen. Police say a search of the man's flat later did not suggest a terrorist motive.