Afghanistan claims killing 31 al-Qaeda terrorists