From the root ب ر ق (b r q). From Proto-Semitic *baraḳ- (“lightning”), although Fronzaroli states that the noun "lightning" may be a deverbal form, in which case only the verb would be inherited.
Improve your pronunciation
Practice speaking and memorizing "برق" and many other words and sentences in Arabic.