A body of mass $m=1$ kg is moving in a medium and experiences a frictional force $F=-kv$, where $v$ is the speed of the body. The initial speed is $v_0=10\,\text{ms}^{-1}$ and after $10$ s, its energy becomes half of initial energy. Then, the value of $k$ is