Hi. Formally, it's an indefinite article (a man = any man). Compare to "the", which is a definite article: the man on the corner (no other man). Now, it can be considered a preposition only in informal speech when replacing "of": sorta sad (sort of sad) or a kinda mess (a kind of mess).
(By...