How did a Bangladesh air force fighter jet crash into a school campus?

The pilot attempted to divert the aircraft away from densely populated areas to minimize civilian casualties and damage, but his efforts were unsuccessful.