'Islamic State' militants say attacked Pakistan-Afghan border post