The hijacker attempted to take control of the plane 'with the intention of causing the greatest possible number of human casualties,' the UAE's top prosecutor said