Nine militants and four security personnel were killed in separate gunfire exchanges in northwest Pakistan amid ongoing security operations in the region.