Inzamam resigns from Afghanistan to join Pakistan as head coach