In its effort to eliminate terrorism in the country, Australia is to build its first prison aimed at isolating militants from other prisoners.