Hundreds of militants 'cornered'