An 18-year-old man accused of taking part in a gang- related drive-by shooting near a San Diego strip mall pleaded not guilty Monday to attempted murder and other charges.