(CNN) The massacre that killed 147 people and wounded scores of others at a Kenyan university lasted for hours Thursday before the terror was over.

"It is a very sad day for Kenya," Interior Ministry Joseph Nkaissery said of the carnage at Garissa University College

The death toll is the highest in a terror attack on Kenyan soil since the U.S. Embassy was bombed in 1998. More than 200 people died in the Nairobi blast.

A total of 147 people were killed Thursday, according to the official Twitter account of Kenya's National Disaster Operation Centre and Kenyan media reports. The agency also said 79 people were injured and 587 people were evacuated.

Kenyan police take cover outside the school during the attack.

Kenyan police take cover outside the school during the attack.

Local residents donate blood at a hospital in Garissa on April 2, 2015.

Local residents donate blood at a hospital in Garissa on April 2, 2015.

Students leave a house where they had taken shelter on April 2, 2015.

Students leave a house where they had taken shelter on April 2, 2015.

Police officers take positions outside the school as an ambulance carries victims to a hospital in Garissa.

Police officers take positions outside the school as an ambulance carries victims to a hospital in Garissa.

Students step out of a house in Garissa where they sought refuge after escaping the attack.

Students step out of a house in Garissa where they sought refuge after escaping the attack.

Students take shelter in a vehicle after fleeing the attack.

Students take shelter in a vehicle after fleeing the attack.

A Kenyan soldier takes cover as shots are fired in front of the school on April 2, 2015.

A Kenyan soldier takes cover as shots are fired in front of the school on April 2, 2015.

Kenyan soldiers stand guard in front of the school on April 2, 2015.

Kenyan soldiers stand guard in front of the school on April 2, 2015.

Members of the Kenyan Red Cross gather outside a hospital in Nairobi to receive victims of the attack on April 2, 2015.

Members of the Kenyan Red Cross gather outside a hospital in Nairobi to receive victims of the attack on April 2, 2015.

A local resident shows a bullet allegedly from the militants in front of the school.

A local resident shows a bullet allegedly from the militants in front of the school.

Kenyan soldiers take cover as shots are fired in front of the university on April 2, 2015.

Kenyan soldiers take cover as shots are fired in front of the university on April 2, 2015.

Kenyan soldiers take cover as heavy gunfire continues in front of the school on April 2, 2015.

Kenyan soldiers take cover as heavy gunfire continues in front of the school on April 2, 2015.

A student hostage is escorted out of the school after troops ended the gunmen's siege on April 2, 2015.

A student hostage is escorted out of the school after troops ended the gunmen's siege on April 2, 2015.

A woman is helped away from the building where she had been held hostage at the school.

A woman is helped away from the building where she had been held hostage at the school.

Students listen to an address by Joseph Nkaissery, Kenya's interior minister, on April 3, 2015. He vowed that the country would not bow to terrorist threats.

Students listen to an address by Joseph Nkaissery, Kenya's interior minister, on April 3, 2015. He vowed that the country would not bow to terrorist threats.

Students get on a bus at the gate of the school on April 3, 2015.

Students get on a bus at the gate of the school on April 3, 2015.

Survivor Cynthia Cheroitich speaks to a television reporter at a hospital ward in Garissa on April 4, 2015. Cheroitich told CNN she hid in a closet, covering herself.

Survivor Cynthia Cheroitich speaks to a television reporter at a hospital ward in Garissa on April 4, 2015. Cheroitich told CNN she hid in a closet, covering herself.

Members of the public view the bodies of the alleged attackers on April 4, 2015.

Members of the public view the bodies of the alleged attackers on April 4, 2015.

People in Garissa crowd around a mortuary window on April 4, 2015, to view the bodies of the alleged attackers. Authorities later paraded the bodies through a crowd on the bed of a pickup truck.

People in Garissa crowd around a mortuary window on April 4, 2015, to view the bodies of the alleged attackers. Authorities later paraded the bodies through a crowd on the bed of a pickup truck.

A nun prays during an Easter service at a Garissa church on April 5, 2015.

A nun prays during an Easter service at a Garissa church on April 5, 2015.

Abandoned shoes remain at the scene of the attack on April 6, 2015.

Abandoned shoes remain at the scene of the attack on April 6, 2015.

A relative grieves after identifying a body at a funeral home in Nairobi, Kenya, on April 6, 2015. Several days earlier, gunmen stormed Garissa University College in Garissa, Kenya, and killed at least 147 people. The Somalia-based Al-Shabaab militant group claimed responsibility for the assault.

A relative grieves after identifying a body at a funeral home in Nairobi, Kenya, on April 6, 2015. Several days earlier, gunmen stormed Garissa University College in Garissa, Kenya, and killed at least 147 people. The Somalia-based Al-Shabaab militant group claimed responsibility for the assault.

Four gunmen were killed, officials said.

The Somalia-based Al-Shabaab militant group claimed responsibility for the assault.

Islamist gunmen burst into the university before dawn Thursday, shooting students and taking hostages during early morning prayer services.

At one point, the attackers cornered a building in which 360 students live, but some of the students escaped, Nkaissery said.

Kenyan forces cleared three of four dormitories and had cornered the militants in the last one, the Interior Ministry explained.

"This is a moment for everyone throughout the country to be vigilant as we continue to confront and defeat our enemies," Kenyan President Uhuru Kenyatta said.

There are usually four guards at the campus gates overnight, Jackstone Kweyu, dean of students, told Kenya's Citizen TV.

The attack was deadlier than an Al-Shabaab attack on the Westgate shopping center in Nairobi in September 2013 that left 67 people dead

Witness: Gunmen shot non-Muslims

Joel Ayora, who was on the campus and witnessed the attack, said gunmen burst into a Christian service. Taking hostages from the service, they then "proceeded to the hostels, shooting anybody they came across except their fellows, the Muslims."

The attackers separated students by religion, allowing Muslims to leave and keeping an unknown number of Christians hostage, Agence France-Presse reported.

"We were sleeping when we heard a loud explosion that was followed by gunshots and everyone started running for safety," student Japhet Mwala told AFP.

"There are those who were not able to leave the hostels where the gunmen headed and started firing. I am lucky to be alive because I jumped through the fence with other students."

For hours after the attack began, heavy gunfire and explosions continued, said Dennis Okari of CNN affiliate NTV.

Heavy gunfire & explosions inside the university. I met Anastacia at the airstrip with serious gunshot wounds. pic.twitter.com/ZcKQTOQnzh — Dennis Okari (@DennisOkari) April 2, 2015

Okari said he was told to take cover as hundreds of students fled, some crawling.

The gunmen are holed up inside the upper hostel section. I can hear gunfire from the other end @ntvkenya pic.twitter.com/6A3fXOzP0t — Dennis Okari (@DennisOkari) April 2, 2015

Photo of wanted man released

The ministry posted a "Most Wanted" notice for a man in connection with the attack. The notice offers a reward of 20 million Kenyan shillings, which is about $215,000.

The name listed is Mohamed Mohamud, who also goes by the aliases Dulyadin and Gamadhere. "We appeal to anyone with any info on #Gamadhere to share with relevant authorities and security agencies," the Interior Ministry posted on Twitter.

We appeal to anyone with any info on #Gamadhere to share with relevant authorities and security agencies. pic.twitter.com/YQ3MCvER4D — InteriorCNG Ministry (@InteriorKE) April 2, 2015

The post does not say what role the man may have played in the attack, if any.

It includes the words "Kaa Chonjo," which means to be on the lookout.

President: Kenya suffering from police shortage

Garissa is about 145 kilometers (90 miles) from the border with Somalia. Al-Shabaab militants have often launched attacks inside Kenya since the Kenyan government sent troops across the border to fight the group.

Kenyatta called on the inspector-general of police "to take urgent steps" to ensure that 10,000 recruits whose enrollment is pending "promptly report for training at the Kenya Police College, Kiganjo. I take full responsibility for this directive. We have suffered unnecessarily due to a shortage of security personnel. Kenya badly needs additional officers, and I will not keep the nation waiting."

The U.S. Embassy in Nairobi condemned the attack.

Police declared a curfew for the next several days in the region from 6:30 p.m. to 6:30 a.m.

We are saddened & angered by today's terrorist attack @ #Garissa Univ. Our deepest condolences 2 family/friends of victims. #CowardsNeverWin — US Embassy Nairobi (@USEmbassyKenya) April 2, 2015

Garissa University College, which has 815 students, was established in 2011 and is the only public university in the region.

The Kenyan Red Cross and the country's health ministry organized a blood drive to help the victims.

Al-Shabaab's carnage in Kenya

The dangerously porous border between Somalia and Kenya has made it easy for Al-Shabaab militants to cross over and carry out attacks.

In a December attack on a quarry , Al-Shabaab militants separated Muslims and executed the non-Muslims, a spokesman for the group said.

Last month, the U.S. Embassy warned of possible attacks "throughout Kenya in the near-term" after the reported death of a key al-Shabaab leader, Adan Garaar.

"Although there is no information about a specific location in Kenya for an attack, U.S. citizens are reminded that the potential for terrorism exists," the warning said.