A latch is the spring loaded piece on the edge of your door that connects between the door and door frame. After 6-12 years they break from us. We most commonly see Kwikset latches malfunction like this.
What we have to do is come out dissemble your door know and manually retract the latch. Then replace it with a new one.
Here are some pictures of the latch damaged and out.