Afghan forces end attack on ministry in Kabul