what kind of bug was that?

so today at school we were doing something and then this huge black bug came into the class. So I said I would go and put it in the grass outside, so I picked it up and carried it. When I was about half way out the door I noticed something started smelling weird so I smelt the bug and noticed it smelt really bad. Once I put the bug down in the grass I still smelt it so I smelt my hands, and yeah…