Pakistani security forces backed by helicopter gunships have pounded suspected militant hideouts near the border with Afghanistan .