From Kosta (a given name) + -ić (“descendant of”), with the given name ultimately from Latin Cōnstantīnus, possibly via Greek Κώστας (Kóstas).
Kostić m (Cyrillic spelling Костић)