This thing is easy. Firstly i have to say that the game checks the game world (bodies, dead bodies, guards, cameras) So when you did not hide a body while playing that level the game will trigger the alarm.
So the thing is,
Hide all the bodies before the kitchen window checkpoint.
Hope it helps. Happy playing.