There are two variants of this figure that Krishna killed.
An elephant belonging to Kamsa that blocked Krishna’s way.
A demon who appeared in guise of an elephant at the behest of Kamsa to trample Krishna dead.