It's unclear how many gunmen were involved in the shooting at the State Oil Academy in Baku.
The Azeri Press Agency quoted a senior police official as saying the terrorists have been neutralised.
Police special forces and ambulances rushed to the scene and access roads are closed.