It was probably hostile when it threw it. In that turn you spent picking up the knife, it changed from hostile to neutral. This is an acknowledged bug (monsters flip-flop between hostile and neutral too often) that will be fixed in the next version. Honestly the biggest reason I can't wait....