A controlled explosion has been carried out in Buckinghamshire after a World War 1 bomb was located in a shed.