Turkey's military says a Turkish soldier was killed in an attack in Syria's Idlib province where the Turkish troops are establishing an observation post.