A passenger aboard a trans-Atlantic flight attempted to ignite an explosive as the plane was landing in Detroit in an incident US officials called an attempted terrorist attack.