The dee jay killed near his Staten Island home was out on a pot-buying run and talking a pal on the phone when he was gunned down, law enforcement sources said today.

Corey McGriff — aka DJ Megatron — was chatting with a male pal of his, telling him he was to buy marijuana at 2 a.m. Sunday when the line went dead, source said.

The friend told police he didn’t hear any gun shots and McGriff’s cell phone was found near his body, law enforcement officials said.

‘‘They were talking and the phone went dead,’’ a law enforcement source said.

Cops are still weighing several possible scenarios, including random crime, a drug deal gone awry or a planned hit.

McGriff, 32, had left his 4-year-old son in his home alone, sources said.

At least three young men were spotted fleeing the scene, cops said.

McGriff — who had worked for WQHT-FM Hot 97 radio and TV’s BET — had just $1 in his wallet when he was killed, and cops said a gal pal was paying his bills.

The victim is also survived by an 11-year-old daughter and 9-month-old boy.

“They’re trying to cope with the situation, especially the 11-year-old,” the dee jay’s mom Louvenia McGriff said. “She’s very hurt and upset and doesn’t understand why anyone would want to do that to her dad.”