A hand-drawn Islamic State flag was found in the room of the axe-wielding Afghan refugee who attacked passengers on a train in southern Germany, a senior state official said on Tuesday.