Source: here.
From the 67th chapter of the harivaMsha
When balarAma was cavorting with his wives and girlfriends and enjoying a pitcher of vAruNi beer, dvivida the mighty ape made obscene gestures. balarAma’s eyes rolled in languor, he sang loudly and he moved like a male elephant in musth. The great ape was a student of sugrIva in the days of yore and had learnt great deeds in battle. The vAnara was spreading much havoc and raping women of the yadu’s feudatories in revenge for the killing of his friends from pragjyotiSha, naraka and mura. He would capture citizens of the yadu’s feudatories and seal them in caverns by blocking the entrances with stones, like a wasp imprisons spiders. He was also smashing cow-pens, setting fire to villages and throwing firebrands down mine shafts in the Anarta province. In the west coast he churned up the water and created floods in the coastal villages. He also destroyed trees in the forests of the yAdavas and hammered the vanAdhyakShas. He then advanced to the shrauta yards of the garga bhAradvAjas and other Brahmins and desecrated the sacrificial altars by urinating or defecating into them.
Thus, he arrived at the raivataka mountain where balarAma was stationed with his girls, and repeatedly vocalized the loud noise kilakilA. balabhadra’s girls were humored by the ape, but he soon grew obscene. The ape then showed his ass in front of the girls’ face. Infuriated balabhadra hurled a rock at the ape. The ape escaped the rock and plucked balabhadra’s beer pitcher and smashed it to pieces and made fun of him. Then he tried to pull down the girls’ garments and laughed loudly.
balabhadra furious with this behavior, shook himself of his languor and picked up his halAyudha and his favorite musala, known as sunanda. dvivida armed with sAla trunk, which he uprooted with one hand attack the yadu chief, and struck balarAma on his head. balarAma fell unconscious briefly, but quickly rallying back tore down the log with his halAyudha. Then swinging his musala he hit the ape on his head. Gashed on his skull, the ape was a like split mountain oozing red oxide of mercury. But the ape fought on pulling up another log and attacking the yadu hero. But saMkarShaNa destroyed that with his hala and then broke up the other trees the ape used on him. Run out of logs the ape attacked the mAdhava with boulders, but he powdered those rocks with his great musala. The ape then rushed at balabhadra with his fist clenched. rAma kept his weapons aside and fiercely shattered the collar bone of the ape. With that dvivida vomited blood and breathed his last.