A deadly attack was carried out at the Turkish Aerospace Industries headquarters near Ankara on Wednesday, the government said, as broadcasters showed footage of several armed assailants entering the building amid reports of gunfire and a loud explosion.