What you observed was most probably a Meteor or a piece of Space junk.
Comets are usually many millions of kilometers away and travel very slowly across the sky.
They are usually Binocular or telescopic objects which sometimes brighten enough to be seen with the naked eye

Cheers