The bloodshed occurred inside the department of philosophy at Charles University in the Czech capital in Prague, where the suspect was student an official from the police said.