NAIROBI, Kenya — Gunmen attacked a university campus in northeastern Kenya early Thursday, clashing with guards and forcing their way into dormitories, taking hostages and singling out non-Muslims, the authorities said.

Kenya’s interior minister, Joseph Nkaissery, said that 147 people had been killed, including four attackers. He contended that the deadly siege at the university had ended, and that security forces were carefully sweeping the campus for any remaining threats.

Kenyan security forces surrounded the campus of Garissa University College and clashed with the gunmen throughout the day, eventually cornering them in one dormitory, officials said 

Abdikadir Sugow, the spokesman for the Garissa county government, said the gunmen were seen wearing "combat gear," including what appeared to be "either bulletproof vests or suicide bomb vests.