The era it was written in had little experience of terrorism in the form it takes today.
Sid Barrets terrorists were of the mental depiction. In that respect, it could be about terrorism.
The entire album itself was dedicated to the departure of Syd Barret; but I think the song has allegorical implications concerning terrorism. If you explicate it; metaphors are easily seen.