If you have a tubeless tire, then your repair job should not be too hard. First, give a very good inspection of the tire and try to find the penetrating item, whether it be a nail, screw, shard of glass or wood, etc. Don't discount the possibility of multiple items. Sometimes boxes of nails fall out of contractors' trucks. When you find it, yank it out.
If you don't find anything, remove your valve core with a valve core remover:
A valve core remover is a very useful thing to have, and should be a part of your toolkit. It is great for voicing your opinion of car drivers who park in motorcycle spaces.
Anyways, take out your valve core and let the air out. Then clean up the stem and core, and replace it. Sometimes you just get gunk in there which prevents it from keeping a good seal, and that is all you need to do to hold air.
However if you did find a nail, you will need to plug it. Here is the basic steps:
1. Pull out the nail 2. Separate a piece of tire plug string, and using the provided inserter, push it into the hole. Once the string is mostly in, pull out the inserter. Some kits require the use of provided glues. Sometimes you need to widen the hole just a little bit, and usually there is a special tool provided for this job. 3. Air up the tire. Once it is to operating PSI, spit on the plug and look for bubbles. If you see any, insert another piece of plug string. 4. Once the hole is totally plugged, cut off any excess plug string, and re-check the tire pressure.
Necessary materials: plug kit, pliers (with cutters to cut the string), air pump, valve stem remover, air pressure gauge.
Note that this is only a temporary fix. Plugs are fine for cars but not for motorcycles, and you should only ride on this as long as it takes you to get to a shop and replace the tire. On the same note, I would not use fix-a-flat on a motorcycle. Some guys do and that's their choice, but I would rather walk than use it.