Hitman executed student, court told