t is a female, Broad-necked root borer. The projection out the rear end is the ovipositor.
It can not sting humans. It is used to put eggs in the soil under debris.
These longhorned beetles are found in eastern N America: Quebec, west to Ontario, Minnesota, Oklahoma then south to Florida. They are found around wooded areas.
The adults eat foliage and can damage fruit trees and grape vines. The larva feed on tree and shrub roots for about 3 yrs before turning into a pupa and emerging in the spring.