AT least four people, including two police officers, have died after a shooting in Canada.

The incident happened in Fredericton, the capital of the Canadian province of New Brunswick, with police saying they have one suspect in custody.

Fredericton’s deputy police chief Martin Gaudet said the two officers arrived at the apartment complex and saw two deceased civilians before being shot and killed themselves.

Gaudet says a 48-year old man with serious injuries was arrested. They didn’t identify him.

No motive has been disclosed for the shooting

Fredericton Police Chief Leanne Fitch identified the officers killed as Sara Burns, 43, who was married with three children, and 45-year-old Robb Costello who had a partner and four children.

The two civilians killed, a man and a woman, were not identified.

Costello was a 20-year veteran of the force. Burns had been on the force for two years.

Global news reported that Costello’s partner, Jackie McLean, was told of his death this morning. Ms McLean said they had been together for four years and that Costello had two adult daughters from a previous relationship.

Several other victims were being treated at a regional hospital, but there were no immediate details on the nature of their injuries or their conditions.

“Our hearts are broken by the murder of our two brave police officers,” Fredericton Mayor Mike O’Brien said in a tweet.

The shooting happened on Brookside Drive just after 7am local time (8pm AEST).

Fredericton is a city of roughly 58,000 people.

Robert DiDiodato, who lives on Oakland Avenue, which connects to Brookside Drive, said he heard a series of “firecracker” sounds.

“With the tempo, it might’ve been a gunshot,” he told CBC.

“It was sort of like a pop, pop, pop, pop.”

“I heard about 15 shots over a 15 minute period. Then I heard another sound that had a different pitch to it. I thought it was a rifle, but I don’t know.”

About five minutes later, he could hear similar noises near his home.

“Doors are locked and everybody’s inside,” he said.

Several police, firefighters and paramedics were at the scene, and Mr DiDiodato said emergency services were evacuating houses.

The CBC said people were escorted to safety by police.

David MacCoubrey, who lives in Fredericton, said he heard about 20 shots and was hiding on his kitchen floor.

He woke in his apartment on Brookside Drive around 7am local time to the sound of three gunshots about 10 metres from his bed.

Mr MacCoubrey said his apartment complex had four buildings in a square, and it sounded like the shots were coming from the middle of the complex.

He said police searched the complex, and he’d been sitting away from windows.

Police searched his apartment, Mr MacCoubrey said.

Canadian Prime Minister Justin Trudeau has tweeted about the incident.

In 2014, another mass shooting in New Brunswick led to the deaths of three Royal Canadian Mounted Police officers and the wounding of two more in Moncton.

At the time, the incident was one of the worst of its kind in Canada, where gun laws are stricter than they are in the US and deadly attacks on police are rare.

But a proliferation of weapons has led to an increase in gun crimes in recent years.

Last month, a gunman walked down a busy Toronto street, killing two people and wounding 13 before turning the gun on himself.

The Globe and Mail reported gun violence had soared in Toronto over the summer, with 228 shootings that killed 29 people and injured at least 150.

In March, the Canadian government admitted offences involving firearms had increased as they tabled a bill to strengthen gun control.

The government reported 2465 violations involving firearms in 2016, a rise of 30 per cent from 2013.

The Canadian Parliament is currently debating the new laws, where an applicant’s background would be checked entirely, rather than just five years.

Gun retailers would also be required to keep records of their firearms inventory and sales for at least 20 years.