Deputy Prime Minister Nick Clegg also paid tribute, saying: "Our thoughts are with the families and friends of the five service personnel who have so tragically lost their lives.
"This incident is a very sad reminder of the vital but dangerous job that our Armed Forces are doing every day to bring security to the people of Afghanistan.
"I would like to pay tribute to their service and to the ultimate sacrifice made by those who died yesterday."
More top news
The friends of a Czech businessman who was beaten to death raise £10,000 in a day to send body of 'great man with a big heart' back home
The Olympians rounded off their success in Rio with a personal triumph as they confirmed they have tied the knot.
The foreign secretary called for tougher action against Russia in an effort to halt the "barbaric" attacks on rebel-held Aleppo.