The British military says one of its soldiers has died fighting insurgents in Afghanistan .