Normally a death occurring abroad will necessitate the involvement of the Consul in that country.
It is likely that the deceased will have travel insurance, which should cover the cost of repatriation of the deceased back to a local funeral company in the UK, but not the funeral itself.
Early contact with a funeral director is advisable for guidance and information.