Avni was arrested in 1947 and detained by the British in Latrun Camp. He was released in March 1948, and was wounded attacking the Muchtar's house during the events of the Deir Yassin massacre. During the 1948 Arab-Israeli War, he took part in Operation Kedem.