I believe the shooter hit the teleprompter and a piece of glass from there hit Trump’s ear.
Debunked - Trump said the bullet pierced his ear. From the Daily Beast:
The shot which may only have been an inch from killing Trump could end up being one of the most consequential moments in American political history.