The military says the solider was killed when his unit came under similar attack near the southern city of Kandahar .