To strike someone up close with the hands or a handheld weapon instead of attacking from a distance with guns, explosives, or other projectiles. It often describes using a hand-to-hand weapon.
When the ammo ran out, the squad had no choice but to melee their way through the ambush.