If you had injected into a vein, you would have gone into a coughing fit and had a really bad time. It sounds more like you nailed a vein but went through it, which then caused massive bruising when you pulled out the needle as the blood came pumping out (small-scale hemorrhage).