Passengers and crew on board restrained a man who allegedly tried to breach the cockpit. The plane had to make an emergency landing at the nearest airport.