The bolt that shoots out of the lock is fouling on the keep ( the bit in the frame). Look very closely for any scrape marks on the bolt or keep, or turn the key with the door open, close it as much as you can and see if you can tell if the bolt is too low or too high. Usually, the keep is adjustable using a screwdriver. Good luck!
John
December 2007