The other two hostages were freed after police fired teargas shells into the mosque , forcing the militants into the open , where two were killed .