Rebels blamed for Afghan attack