Pick up the small green tanks lying around the arena and hit him with them.
That is genuinely the mechanic. Brawl is a large, armoured Decepticon and straightforward weapon fire does very little, so the level scatters throwable objects for you to use instead. The green tanks are the intended ammunition, and each connect does real damage.
Once you have the rhythm it is one of the shorter boss fights in the game. The trick is simply realising the environment is the weapon rather than your default arsenal.