In a statement the PSNI said the explosion took place in the Enniskeen area of the town on Tuesday night.
Police said the man suffered injuries to his chest and hands.
A number of homes in the area had to be evacuated.
Thousands expected to take part in 'Derry Day' this weekend
Brexit: There’s a fundamental con trick being played over Liz Truss’ Northern Ireland Protocol Bill says Lord Empey
Apprentice Boys of Derry: new era of respect makes for enjoyable ‘Relief’ parade
BBC political editor Enda McClafferty sees the funny side after he’s caught on camera underdressed for live TV report
Feile organisers asked if they have warned Wolfe Tones about leading young people in pro-IRA chants
SDLP councillor Thomas Larkham said residents had been evacuated to a nearby church.
“The circumstances of the incident are still unclear but Army technical officers are on site and police have erected a cordon for the safety of the local community,” he said.
“This is the last thing that anyone in Enniskeen wants or needs. This is a close-knit community full of people trying to get on with their lives during a difficult time for us all.”
Alliance Party councillor Eóin Tennyson said: “The patience of residents who have had to leave their homes as police work to make the area safe is greatly appreciated.
“Those behind this have nothing to offer only misery and destruction.”