Very simply, you either added too much priming sugar, or you didn't get the yeast to completely eat the fermentable sugars before bottling. Other reasons for bottle bombs are unlikely.
You need to use a hydrometer to check the finishing gravity of the beer before you bottle. It should be very close to what you would expect for the recipe, and if you are using a kit it should say what the FG ought to be. Make sure the gravity remains unchanged after three days in a row.
Make sure to use the recommended amount of sugar for the number of bottles you are priming 9Usually it's like 3/4 cup for 5 gallons, or about 48-50 bottles.) If you don't mix up as much wort, like say you only made a 4 gallon batch instead of the 5 gallons the kit calls for, then the 3/4 cup priming sugar will be too much!
Also, make sure you have about an inch of headspace in a regular tall bottle.
Normally what happens is people get too anxious to get their beer done and they try bottling too soon. This leaves too much sugar in the bottle causing the bottles to burst.