There were 277 people on board, and three were critically injured, officials said.