Shock (in medicine) is a bit of a catch-all term for "blood ain't pumpin properly". One example would be from blood loss, where the blood ain't pumpin properly cuz there ain't enough of it left in there.
It kills you by depriving your organs of blood flow. There are lots of things that can cause this, from heart attacks to massive bleeding to huge infections in your bloodstream. (sepsis)