An Airbus with over 200 people on board has made an emergency landing on the remote island of Guam after a mid-air fire broke out in the cockpit.