Smart fragmentation grenade