News of Liz Truss’s resignation prompted quick reaction from political leaders and media commentators around the world.