Taliban attacks kill 23 Afghan soldiers