Gun and suicide attack kills 24 near Pakistan-Iran border