The first officer, who was nearly 40 years old, operated a flight from Delhi to Bali on Tuesday, according to an airline official.