Pakistani security forces have killed five militants in a shootout and freed 23 hostages in the country's southwest