Manhattan subway explosion 'was attempted terrorist attack', says mayor