A flat tire can be a scary event on a motorcycle. Good for you for getting the bike off the road without killing yourself! You sure are awesome.
To repair the tire, first you need to determine whether you have a tube or tubeless tire. Generally, if it is a spoked rim, you will have an inner tube, but you can also take a look at the valve stem. The tubeless tire will have what looks like a rubber seal around the valve stem where it sits in the rim.