I need help recognizing this pest which causes some of the stems on my mango tree to dry and die. Those seem to be worm/maggot like larva, with a pinkish color, about 4mm in length. They are surrounded by eggs and some younger white larva. I found a few adults, seem to be black beetles (or something), no more than 2mm in size. The dying branches are 1-2cm in width. The larva infested are blackens and dries, the leaves further up the branch die from unavailability of water.
In those pictures you can see one of the older infested branches, the rest are not as dried yet.
Thank you all.