Handle position looks like it could be open or part open, this may be why lock will not turn, check to see if door or boltwork is just jammed.