A 41-year-old man has been flown to hospital after a homemade pipe gun exploded, according to The Age.

Ambulances were called to a property in Majorca (near Maryborough)at around 6pm on Wednesday night and the man was flown to hospital in a critical condition.

An investigation is underway.