Smart grenade