The scene of the shooting was cordoned off

A student has opened fire on classmates at a university in southern Hungary, killing one person and wounding three others, officials say.

The man started shooting during a class in the biophysics research institute at Pecs University, authorities say.

Police said the alleged gunman - a 23-year-old pharmacology student - ran to a clinic before giving himself up in a phone call.

A first-year male student died of his injuries, an official said.

Those injured were another student, a teacher and a cleaner.

Hungarian Prime Minister Gordon Bajnai said the authorities would provide all possible support to those affected.

"I share the pain of the victim's family," he said. "We do not know yet the reasons for this monstrous act."

"Nobody can be prepared for this, but to avoid similar tragedies in the future we will have to calmly examine the motives of this one".