Sounds like a pinch flat as mentioned. Helps to very slightly inflate the tube before putting the tire fully on.
Also - if you were changing the tube due to a flat - best to carefully run your fingers around the inside of the tire to ensure whatever caused the flat isn't still there.