Robert Westall · 1975
After an air raid, a group of English children find a German machine gun and hide it from adults who are looking for it.
Also, The Machine Gunners by Robert Westall. [2]
[1] https://en.wikipedia.org/wiki/Rogue_Male_(novel)
[2] https://en.wikipedia.org/wiki/The_Machine_Gunners