ONTARIO, Calif. (AP)  Police say a 17-year-old Southern California youth robbed a fast-food restaurant and threatened passers-by with a gun as he skateboarded down an avenue until he was fatally shot in a confrontation with officers.

Ontario police Sgt. Jeff Higbee tells the San Bernardino Sun newspaper (http://bit.ly/1Lnljmj ) that a suicide note was found at the teen’s home following the Thursday afternoon shooting.

Higbee says officers responded to numerous 911 reports of a skateboarding teen pointing a gun at people and cars while screaming, “I have a gun.”

A San Bernardino County sheriff-coroner’s press release says the shooting occurred when the teen pointed a revolver at officers.

During the robbery the teen handed some stolen cash to a customer.

Detectives are investigating whether the incident was a so-called suicide-by-cop.